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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onChange problem

Status
Not open for further replies.

digatle

Technical User
Oct 31, 2003
85
US
Can you have multiple instances of the onChange exist on the same html page?

Digatle
 
Sure,

<input onchange=&quot;doSomething()&quot;>
<input onchange=&quot;doSomethingElse()&quot;>

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
onChange is a seperate event on each object that supports it. By default, onChange refers to the window object if nothing else is specified. Specifying seperate onChange events on the same object probably just executes all of them, but you should test it on your supported browsers before assuming that.

Sincerely,

Tom Anderson
Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top