Javascript: Change the OnClick function

Skip Navigation LinksIrocon > Blog > 2008 > March, 2008 > March 14, 2008 > Javascript: Change the OnClick function

Javascript: Change the OnClick function

After battling with this for days, I finally figured out how to change the OnClick function for an a HTML anchor tag. This method is compatible with browsers as well as IE.

a.onclick = new Function() {

}

Last Updated:Thursday, September 02, 2010By:alfero#

Would you like to comment?

Sign in with your OpenID. If you do not know what OpenID is, find out.