![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.javascript archiveRe: How to check that a form has been changed
From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Sun Apr 30 2006 - 22:40:43 CEST
Taras_96 wrote:
> How do you detect that a form element has been changed? This thread:
If we lived a perfect world, that would not be necessary. The `change'
<URL:http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-eventgroupings-htmlevents>
Try
document.forms[0].onchange = function() { alert(42); };
or
document.forms[0].addEventListener(
in Geckos, Operas and KHTML-based browsers. When you change a form control
However unfortunately, there is also IE, where it does not bubble, and where
<URL:http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onchange.asp>
PointedEars, with a fitting random signature
-- Bill Gates isn't the devil -- Satan made sure hell _worked_ before he opened it to the damned ...Received on Mon May 1 05:28:09 2006 |