JRS: In article <_J************ ********@comcas t.com>, dated Wed, 22 Mar
2006 18:53:38 remote, seen in news:comp.lang. javascript, Randy Webb
<Hi************ @aol.com> posted :
No it doesn't. Onclick on a select is like onblur of any other input
element. You don't use it to change/validate things because then you are
repeatedly running code when it isn't needed. onChange will only fire
when it's changed, meaning your code only runs when it needs to.
The programmer must remember that visiting a select and not changing it
can amount to making a selection ("Now I've seen the other options, I
want what was already showing"). So the selection may need to be
validated by something other than its own onChange, perhaps by a "Use
it/them" button. It may be appropriate to process the initial state in
page load, as if it had been selected by the user rather than the
programmer.
--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.c om/faq/> JL/RC: FAQ of news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.