Wednesday, March 2, 2011

How to create a link just for running Javascript, no postback

Two ways
<a href="#" onclick="Function();">Click to Run</a>
<a href="javascript:void(0)" onclick=" Function ();">Click to Run </a>

  

No comments:

Post a Comment