Closed
Bug 132684
Opened 23 years ago
Closed 23 years ago
focus() method not being supported for <input type=text>
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
People
(Reporter: madhur, Assigned: jst)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
a user sent me an email with a bug he was seeing in netscape 6.2.1.
I see the same problem in buildID: 2002-03-18-trunk build (win2000)
following is the email:-
==========================
Hi,
We are developing a Web Based Application based on Three Tier
Arctitecture.
We are using ASP to build Presentation Layer . Java Script is being
used for Client side validation .
When we are trying to open our application in Netscape 6.2.1 it is not
supporting some of the function.
The same functions are supported in IE 5.0 and above.
Eg -
<script>
field = document.form1.elements['Firstname']
field.focus()
field.value()
</script>
Is there any patch avaliable to resolve this issue or any other way of
getting the focus on the desired field.
I am sending a small application which asks the user to enter the name and
on TAB away it displays the User name as alert .
On click of OK the focus should come back to the same field.For IE it is
working fine but with the latest Netsacpe Browser 6.2.1 it is not
supporting this function. It gives the alert message but the focus does not
come to the desired location.
********************************************************************************
*******************************************
<%@ Language=VBScript %>
<HEAD>
<script>
function check_textbox()
{
// For IE
// field = document.form1.elements['Firstname']
// alert(field.value);
// field.focus();
// field.select();
// For Netsacpe 6.2.1
field = document.form1.elements['Firstname']
alert(field.value);
field.focus();
field.select();
}
</script>
</HEAD>
<BODY>
<form name = "form1">
<table>
<tr>
<td>
<b>Enter Your Name :</b> <input type=text
name="FirstName" id="Firstname" onblur="check_textbox()">
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
********************************************************************************
*************************************************
Your help to resolve this issue will be greatly helpful for us.
Regards
Gurmeet Singh Chhatwal
===================================================
Not sure if this can be considered a dup of bug # 51897.
Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
Duplicate of "calling this.blur() in onfocus handler or this.focus() in an
onblur handler do not work"
*** This bug has been marked as a duplicate of 53579 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•