Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

invisible, focusable form element

Status
Not open for further replies.

blueindian1

Programmer
Apr 24, 2001
150
US
Hello,

Can anyone tell me how to create an invisible form element that I can give focus to? I don't care what it is, as long as i can adjust the size (needs to be super small) and user's can't see it.

thanks,

rich
 
You might be able to use an <img tag & have the image file be like 1px by 1 px. I think you may still see a dotted rectangle when the img has focus. But if it's that small, it may be ok.
 
i tried that, but i can't seem to get the focus to set.
 
Can you use the form/background color for your invisible object?
 
tada, it can be any size you want, it will never really take up space, it's still there, it's netscape 4.7+ and IE compatible, and it's a text input woohoo! (no, I see nothing exciting about it being a text box, but hey, it should work :))
Code:
<input type=&quot;text&quot; name=&quot;youcantseeme&quot; style=&quot;display:none;&quot;>

-Tarwn
Quick and dirty anyone?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top