Right!– If you just want to link to a page, use standard HTML <a href="indexPage.html">click link </a>. But calling a JavaScript function from an HTML <a href="#nogo"> link </a> can have some interesting aspects. I forget the term -- "JavaScript link"?
For instance, I call an open pop-window function to give viewer some source info without sending them away from site (http://www.chanit.com, http://www.jacquimorgan.com, http://www.josephdenaro.com)'
Code:
<p class="footnote"> CREDITS: (1) Web design & animation by Denise deGoumois <a href="javascript:myopen('http://www.auntnini.com')">http://www.auntnini.com</a><br>
(2) Omni Image View, Fade, and/or Slide ("vfs") Script ©2008 <a href="javascript:myopen('http://home.comcast.net/~jscheuer1/side/vfs/vac_plain.htm')">John Davenport Scheuer</a> as discussed at <a href="javascript:myopen('http://www.dynamicdrive.com/forums/showthread.php?t=43787')">Dynamic Drive Forums</a></p>
Here are some links I found on the subject (maybe not the best):
"Using HREF JavaScript Links" http://computerprogramming.suite101....vascript_links
"Using Link Tags with JavaScript" http://www.pageresource.com/jscript/jlinktut.htm
"HREF for Javascript links: “#” or “javascript:void(0)”?" http://stackoverflow.com/questions/1...avascriptvoid0
Bookmarks