Feedback on: irt.org FAQ Knowledge Base Q1074
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Of course.
Can we change this by removing the myVoid all together and use
href="javascript:;"
instead???
Thanks
Michel
Comments:
This is currently the best way:
Javascript function only:
<a href="#"
onClick="myFunction(); return false">click</a>
Javascript function that takes a url
<a href="page2.html"
onClick="myFunction(this.href); return false">click</a>
Javascript function that submits a form
<a href="#"
onClick="document.myForm.submit(); return false">click</a>