Re: Next form element
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Next form element

From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Date: Wed Feb 01 2006 - 17:16:28 CET

JRS: In article <XuNDf.4478$tb3.2396@newssvr24.news.prodigy.net>, dated
Tue, 31 Jan 2006 17:53:59 remote, seen in news:comp.lang.javascript,
BootNic <Bootnic@bounce.prodigy.net> posted :
>
><button type="button" onclick="x.readOnly=(x.readOnly)?false:true;
                                                       ^^^^^^^^^^^^ Ugh!
>x.focus(); x.select();">toggle readOnly</button>

As is well-known, I dislike using new-fangled constructs instead of
older equivalents as soon as they become available in the latest
systems, since that handicaps those with older software.

And I don't recall ever seeing <button ... > in anyone else's source.

But (with or without type=button) it works in my IE4, and is acceptable
to two local testers.

In which versions, at about what date, did it appear in browsers?

Are there other special cases of <input type=... > that are widely
implemented?
 

-- 
 © John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v4.00   IE 4 ©
 <URL:http://www.jibbering.com/faq/>  JL/RC: FAQ of news:comp.lang.javascript 
 <URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
 <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Received on Tue Feb 7 21:30:05 2006