View Single Post
  #2 (permalink)  
Old 07-21-07, 01:26 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
There's not much difference to do it via a button or a link.
I'm guessing you use onclick="callCode()" in your button tag, right?
If you want, you can use the same for your link since it also supports onclick.
The browser might try to follow a link tho, so to be sure it won't, do something like this:
HTML Code:
<a href="#" onclick="callMyCode();return false">
__________________
[W3Schools - learn all about the standards.] [QuirksMode - Browser Quirks] [MS's Online Reference Docs] [DOM in Gecko.]
Please pay attention to stickys, announcements and forum rules, thank you.
Please also remember Code Wrappers and [SOLVED] Marking, this helps everyone.
Reply With Quote