Menu
In my past I’ve been calling Javascript functions more so through the <a href=”javascript function();”>link</a> method than an onclick. However I believe this is w3c uncompliant, and is causing some errors in validation.
What I’ve resorted to right now is doing something like.
<a href=”#” onclick=”function();”>link</a>
The only problem with this is then I’m puting a # in the current address bar, and well I’d rather the URL stay the same.
Any suggestions? If I leave the href=”” then it just redirects to the current page.