Disabled text box

Results 1 to 3 of 3

Thread: Disabled text box

  1. #1
    Join Date
    Dec 1969

    Default Disabled text box

    Is it possible to prevent the user enter the value into the text box? If so, will it work both in Netscape and IE?<BR>Thanks in advance<BR>

  2. #2
    Joel M Guest

    Default RE: Disabled text box

    sure there is...I&#039m sure that there is another way, but the way that I find it to work the best is:<BR>----------------<BR>&#060;form name="form1"&#062;<BR><BR>&#060;input type="text" name="text1" onFocus="document.form1.text1.blur();"&#062;<BR>----------------<BR><BR>This basically means (in case you don&#039t know javascript) that as soon as focus is brought to the text field...it will take the focus away...thus "disabling" the text field...this works the same way in a &#060;textarea&#062; tag.<BR><BR>hope it helps<BR>joel<BR>jdm.4mg.com

  3. #3
    Join Date
    Dec 1969

    Default RE: Thanks a lot!

    Thanks a lot for your answer!<BR>Lana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts