PDA

View Full Version : Fields and NS


Jeewhizz
04-14-2003, 12:58 PM
Can the readonly attrib for a input tag be used successfully in NS?

Also, what is the status on accessinf div's in NS? is it the same as IE, or is it still got to be done through document.all.xxx instead of document.xxx?

Jee

chrismiceli
04-14-2003, 01:54 PM
the readonly tag can work in ns for all i know, just try this
<input type="text" readonly="readonly">

glenngv
04-15-2003, 10:10 AM
readonly does not work in NS4.
for cross-browser compatibility, you have to do something like this:

<input type="text" name="field" value="blah" readonly="readonly" onfocus="this.blur()" onchange="this.value=this.defaultValue">