[Javascript] Netscape 4x and text form fields

Peter Brunone peter at brunone.com
Fri Dec 28 23:04:41 CST 2001


Nancy,

	Netscape 4, as I'm sure you're aware, isn't very amenable to DHTML
scripting.  AFAIK, the only thing you'll be able to do is rig an onFocus()
event handler that trips a function; if the radio button is checked, then
the text box is blurred (effectively achieved by window.focus(); ).

Cheers,

Peter

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of Nancy Burton-Vulovic
|Sent: Friday, December 28, 2001 5:28 PM
|To: javascript at LaTech.edu
|Subject: [Javascript] Netscape 4x and text form fields
|
|
|I need to be able to "gray out" text fields in Netscape 4x if a certain
|radio button is checked. I need them to be both visually distinct
|and unable
|to accept text. I wrote a script that works fine in IE5x and NS6.2, using
|document.form.field.style.bgColor and document.form.field.disabled, but it
|doesn't do anything at all in NS4x. Any hints?
|
|TIA
|Nancy




More information about the Javascript mailing list