Closed Bug 93800 Opened 23 years ago Closed 23 years ago

Javascript Does Not Support Command

Categories

(Core :: DOM: Events, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 31426

People

(Reporter: reply, Assigned: joki)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.3) Gecko/20010801
BuildID:    2001080110

Either Javascript does not support the ONBLUR command, or this command is not
functioning correctly.  I use this command on a company web site to close a
window that has been spawned whenever a user forgets to click the CLOSE button.
 This way, when they go back to the main page and click another product for
viewing, they do not get the impression that the site is broken due to the fact
that the picture is loading in the opened windows which is behind their main window.


Reproducible: Always
Steps to Reproduce:
Visit http://www.annabellebearden.com and click on a product photo to see what I
am referring to.  If you leave the window without clicking the link, the window
remains open and does not close even though the command says to do so.  The
command is listed in the BODY area.  I have listed it below:

COMMAND:  <BODY BGCOLOR="#FFFFFF" TEXT="#000000" ONBLUR="(self.close());">


Actual Results:  The same as described above.


Expected Results:  I expected the window to close when the user leaves it
without clicking any of the buttons.  IE and Netscape 4.78 support this command.
we _do_ support self.close().... the event handler must not be firing properly.
Assignee: rogerl → joki
Component: Javascript Engine → DOM Events
QA Contact: pschwartau → vladimire
The problem seems to be that the onblur event is fired when the HTML portion of
the windows loses focus, and by default the focus of a newly created window is
at the URL bar. If you click on the body, then the page will close itself when
you go to another page. 
Even if you use tab to move in the window between the chrome and the page
content, the page will close itself due to onblur code, which i find quite annoying.
This bug is just another dup. This time it's bug 31426

*** This bug has been marked as a duplicate of 31426 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verifying
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.