|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
This is the correct way to make an anchor tag call a javascript function and not scroll the page:
<a href="#" onclick="javascript:MyFunction();return false;"> Note that the "return false;" at the end tells the browser not to execute the href="#", so your page will not scroll.
|
|
|
|
|