Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] RE: Invoke onclick event of one button from clicking a second button


  • From: javascript@xxxxxxxxxx (Harry Love)
  • Subject: [Javascript] RE: Invoke onclick event of one button from clicking a second button
  • Date: Wed, 11 Sep 2002 14:44:30 -0700

George,
Try this:
<input type="button" id="abutton" value="A" onclick="alert('A clicked')"
/>
<input type="button" id="bbutton" value="B"
onclick="document.getElementById('abutton').click()" />

This worked for me in IE6, Moz1.1, and NN6.2.

Regards,
Harry