onclick and anchor tags
To use a javascript event such as onclick with an anchor tag (“a”), you should do the following:
- use a pound sign as the href
- list your function call with the event, but add 'return false;' to the text
docs:programming:javascript:onclick_and_anchor_tags
To use a javascript event such as onclick with an anchor tag (“a”), you should do the following: