I have a radwindow in which I have a button execute some javascript which manipulates the css classes of some elements. I see that this works, but then the content posts back and refreshes and the changes that the javascript just made get wiped out. How can I stop the radwindow from reloading after I execute a javascript function?
Here is the code for the button on the page loaded in the RadWindow:
And here's the javascript I have in the RadWindow:
Here is the code for the button on the page loaded in the RadWindow:
<div style="padding:10px 10px 10px 10px; position:fixed; background-color:white; width:100%; z-index:100; height:15px;"> <table> <tr> <td> <button id="btnModify" onclick="ShowModify(); return false;">Modify</button> </td> </tr> </table></div>And here's the javascript I have in the RadWindow:
function ShowModify(){ var elems = document.getElementsByTagName("span"); for (i in elems) { if (elems[i].className == "modifyField") { elems[i].className = "modifyFieldVisible"; } } return false;}