[browser] Question regarding WindowEvent boolean fields [message #449682] |
Thu, 27 January 2005 22:09 |
Benjamin Pasero Messages: 337 Registered: July 2009 |
Senior Member |
|
|
Hi,
again this post deals with blocking popups from the IE. Now, the flags
inside WindowEvent (menuBar, statusBar, ...)
give a good hint, wether the webpage that is about to be shown is a
popup or not. In the Browser example where
popups are blocked a webpage is only considered a popup, when all fields
are boolean FALSE.
I wonder why this is necessary. Does'nt a single FALSE flag (e.g.
menuBar = false) tell enough, that the
webpage is a popup? Or at least, that the webpage was opened in a result
of JavaScript (window.open()).
If that is the case, popup blocking would be more efficient if the
fields are compared with OR and not AND.
I know that this solution would be kind of restrictive, since some pages
might use window.open() as a way
to display their websites. I watched how Firefox is blocking popups: Any
JavaScript code that is triggered
by the events "onLoad" or "onClose" are ignored, whereas an open()
Method in a link or "onClick" is allowed.
But my question is, who sets these fields? Is it set by the parameters
of the "open()" JavaScript call, or
could it also be set by the browser itself (e.g. the user has chosen to
not display the status bar on any
webpage). If that is the case, it would not make sense to compare the
fields with OR, since then the user
would not be able to use the Browser at all.
Thanks for helping,
Ben
|
|
|
|
Powered by
FUDForum. Page generated in 0.02086 seconds