|[browser] Question regarding WindowEvent boolean fields [message #449682]
||Thu, 27 January 2005 22:09
| Benjamin Pasero
Registered: July 2009
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
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
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
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,
Powered by FUDForum
. Page generated in 0.01888 seconds