-
<INPUT type="password" unselect problem
I have 3 fields on my page:
1.user name - type="text"
2.password - type="password"
3.change password - type="checkbox"
When the user tabs in to the first 2 fields, I want the text to be selected.
So the code is:
onFocus = password.select().
The problem is:
When you tab out of the user name field, it gets deselected. But when you
tab out of password, it does not get deselected i.e it remains highlighted.
In order to get it deselected, I need to add one more text field (which I
do not want).
Any ideas, how to solve this one?
Tks
-
Re: <INPUT type="password" unselect problem
Use the onBlur event and select some other field.
Also in IE if you set TABINDEX numbers the deselect is automatic.
Avron Polakow
Bob Anderson wrote:
> I have 3 fields on my page:
> 1.user name - type="text"
> 2.password - type="password"
> 3.change password - type="checkbox"
>
> When the user tabs in to the first 2 fields, I want the text to be selected.
> So the code is:
>
> onFocus = password.select().
>
> The problem is:
> When you tab out of the user name field, it gets deselected. But when you
> tab out of password, it does not get deselected i.e it remains highlighted.
> In order to get it deselected, I need to add one more text field (which I
> do not want).
>
> Any ideas, how to solve this one?
>
> Tks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks