Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On Click Question

Status
Not open for further replies.

YodaMan81

Technical User
Jul 8, 2003
94
US
I have a form that I want to do 2 things with.
When the user clicks "submit" I need to execute 2 different functions.
One is called CheckID and the other is called makecookie().

I can get one or the other to work....but not both. I dont care in what order they are done, except I just want them to be done.
How can I handle this problem?

thanks in advance!
 
Code:
<script type="text/javascript">

    function one() { alert( "Running function one." ); };
    function two() { alert( "Running function two." ); };

</script>

<a onclick="one(); two();">Test</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top