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>    

blog comments powered by Disqus