Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: irt.org FAQ Knowledge Base Q1074

Feedback on: irt.org FAQ Knowledge Base Q1074

Sent by michel on October 14, 1999 at 00:45:46: - feedback #513

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







Sent by michel on September 05, 2001 at 10:46:00: - feedback #3129

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>



©2018 Martin Webb