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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I make cursor blink in login box automatically 1

Status
Not open for further replies.

chuckali

Programmer
Feb 15, 2001
1
US
Hi I have this site at
I have usernam and password login boxes. I would like to get a
javascript, when some one got o that site there cursor should blink in
text box automatically. I know lot of web sites have this funcation. Some one told me you can do this with javascript. Please visit my url at
and you will see what I am talking about.
Thanks for your help.
Chuck
 
hmmm - I am not sure if there is a cursor type for this (jaredn/lucidddream?) - but good point, I am not sure I have noticed them flashing.

I guess one way is to continually focus/blur on a delay, but only until someone starts typing - Once letters are deteced in the box you want to clear the timeOut and stop flashing - now I'm thinking there must be a cursor!
b2 - benbiddington@surf4nix.com
 
mine automaticall blinks. to set focus inside a particular form element, use this code:

document.formname.formelement.focus() jared@aauser.com -
 
think this is wat u need :

<BODY bgcolor=&quot;4d557a&quot; onLoad=&quot;javascript:document.form[0].username.focus();&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top