document.getElementById(\"RightButton\").innerHTML=\"Back to Question\";
document.getElementById(\"RightButton\").onclick=GoBack();
Is the code I wrote to solve my problem. The first line successful changed the name of the button, but the second line simply doesn\’t work.
As you may have discovered, I\’m totally a newbie. If you use excessive jargon, it will probably take me another question to figure out the jargon.





Rating:
The post How to manipulate the "onclick" event of a html button element with JavaScript? appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/how-to-manipulate-the-onclick-event-of-a-html-button-element-with-javascript.html
No comments:
Post a Comment