Call javascript from HREFTag(s): Language

Method 1
If Javascript is disabled then an error is displayed...
<A HREF="javascript:myFunction()">
    Click here for Javascript action!</A>    
Method 2
If Javascript is disabled then a special page is displayed to warn the user...
<A HREF="nojavascripthere.html" 
   onClick="myFunction(); return false">
      Click here for Javascript action!
</A>    



If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2012
[ home ]