Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: An alternative to disabled=true


Message #1 by "Peter Howells" <PeterHowells@H...> on Fri, 8 Jun 2001 16:31:33
Try something like

document.MyForm.txtInput.onfocus="blur()";

I can't quite remember the syntax, wether you need quotes, brackets etc

-----Original Message-----
From: Peter Howells [mailto:PeterHowells@H...]
Sent: 08 June 2001 17:32
To: javascript
Subject: [javascript] An alternative to disabled=true


This only works in Explorer :-

document.MyForm.txtInput.disabled=true;

Does anyone know how to disable an input field using Netscape 4+ ?

________________________________________________________________________
Scottish Enterprise Network
http://www.scottish-enterprise.com


  Return to Index