do an action onClick of an html link

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Mythic Fr0st
Forum Contributor
Posts: 137
Joined: Sat Dec 02, 2006 3:23 am
Contact:

do an action onClick of an html link

Post by Mythic Fr0st »

How would I get my script to 'do an action' onClick of an html link?

Code: Select all

<a href="blah" onClick=$vert=0, $horz=0>Blah</a>
thats basically what I want -.- perhaps I could call a function?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

Code: Select all

<a href="javascript:void(0)" onClick="whatever()">
Post Reply