I am using an html image button type like this:
<input id="wbsupld" type="image" value="upload" onclick="showwbsdiv()" src="images/Upload.png">
and the javascript function is:
function showwbsdiv() {
document.getElementById("masswbsupld").style.display = "block";
return false;
}
which is displaying a div “masswbsupld” but the problem is my page is getting refreshed and the div goes back to display=”none” mode.
and i am using update panel .. is that causing this?
Because its type is
image, animageinput element will submit your form.You need to do