469,902 Members | 1,971 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,902 developers. It's quick & easy.

SetFocus using Javascript

Joe
Hi,

I have a textbox on an asp page.

The text in my textbox is 'MM/DD/YYYY'.

When the user tabs into teh textbox I clear
the 'MM/DD/YYYY' and set focus to the control.

However, eventhough the control has focus the cursor is
not flashing so it is unlcear for teh user.

Does anyone know what the probem is here?

Thanks,
Joe.
Jul 19 '05 #1
1 8655
Joe wrote:
Hi,

I have a textbox on an asp page.

The text in my textbox is 'MM/DD/YYYY'.

When the user tabs into teh textbox I clear
the 'MM/DD/YYYY' and set focus to the control.

However, eventhough the control has focus the cursor is
not flashing so it is unlcear for teh user.

Does anyone know what the probem is here?

Thanks,
Joe.


This has nothing to do with ASP, which is code that runs on the server, not
in the browser (client-side). In the future, please post your client-side
code questions to one of the newsgroups with "dhtml" in its name, or to
microsoft.public.scripting.jscript.

I cannot answer this question without seeing your code. Please followup to
an appropriate newsgroup and show them your code.

Perhaps you should consider changing the border or background color of the
textbox when it gets focus. You can use the onfocus and onblur events for
this IIRC.

Bob Barrows

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Ben Smeets | last post: by
1 post views Thread by amy | last post: by
6 posts views Thread by KS | last post: by
4 posts views Thread by Mad Scientist Jr | last post: by
6 posts views Thread by CoTConnie | last post: by
4 posts views Thread by jonefer | last post: by
8 posts views Thread by Shachar | last post: by
reply views Thread by MrsLeigh | last post: by
2 posts views Thread by gnewsham | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.