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
- References:
- Prev by Date: [Javascript] Can you change a style at runtime?
- Next by Date: [Javascript] Can you change a style at runtime?
- Previous by thread: [Javascript] RE: Invoke onclick event of one button from clicking a second button
- Next by thread: [Javascript] Can you change a style at runtime?
- Index(es):