I am using this JavaScript function in order to change image on click, but it is doing refresh all the time and go back to the original image.
this is the code I am using;
function showImage1() {;
document.getElementById('Image5').style.visibility = 'visible';
document.getElementById('Img1').style.visibility = 'hidden';
}
<div>
<input ID="Button1" type="image" src=" Resources/Icons/benefitBtn.png" OnClick="showImage1();"/>
</div>
Any suggestion please?