i am using a html image control in mt aspx page and i am calling a javascript function on the click event of that control but here my page is getting refreshed every time i am clicking it
here’s my code:
<input id="wbsnew1" type="image" value="New" onclick="showHideDiv()" src="images/New.png" />
and here’s my javascript code :
function showHideDiv() {
document.getElementById("newdata2").style.display = "block";
}
“newdata2” is a div
1 Answer