Closed
Bug 107988
Opened 23 years ago
Closed 23 years ago
Cannot set focus on a field in JavaScript eventHandler fucntion
Categories
(Core :: DOM: Events, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 109962
People
(Reporter: njyang, Assigned: joki)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
in Netscape 6, forms's field.focus() method does not work.
<input type="text" name="field1" onBlur="myHandler(this);>
function myHandler( field )
{
//dosome validation here...
if ( failed) {
field.focus();
return false;
}
else
return true;
}
Comment 1•23 years ago
|
||
Which Netscape version are you using? Can you reproduce in a Mozilla build (this
is Mozilla's bug database)?
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
I believe I have captured the bug in the reduced testcase.
Confirming bug. In NN4.7 and IE4, the upper textbox steals the focus
as soon as you type more than three characters in it. Using Mozilla
trunk binaries20011030xx on WinNT, Linux, however, the upper textbox
never steals the focus no matter how many characters you type -
OS : Win ---> All. This is not JS Engine; reassigning to DOM Level 0.
Assignee: rogerl → jst
Status: UNCONFIRMED → NEW
Component: Javascript Engine → DOM Level 0
Ever confirmed: true
OS: Windows NT → All
QA Contact: pschwartau → amar
Comment 4•23 years ago
|
||
Over to event handling.
Assignee: jst → joki
Component: DOM Level 0 → DOM Events
QA Contact: amar → vladimire
Comment 5•23 years ago
|
||
This looks like the same thing as bug 109962. I'm duping up because it has an
even further reduced testcase.
Comment 6•23 years ago
|
||
I mean it this time :)
*** This bug has been marked as a duplicate of 109962 ***
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
•