topical media & game development

talk show tell print

basic-javascript-05-ch5-examp4.htm / htm

  <script language="JavaScript" type="text/javascript">
  function linkSomePage_onclick()
     alert('This link is going nowhere');
     return false;
  <A href="somepage.htm" name="linkSomePage">
     Click Me
  <script language="JavaScript" type="text/JavaScript">
     window.document.links[0].onclick = linkSomePage_onclick;

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.