Closed Bug 132684 Opened 22 years ago Closed 22 years ago

focus() method not being supported for <input type=text>

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 53579

People

(Reporter: madhur, Assigned: jst)

Details

Attachments

(1 file)

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>&nbsp;<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.
Attached file code given by the user
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: 22 years ago
Resolution: --- → DUPLICATE
verified dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: