XP SP2: window.createPopup() method only opens one window per page

Contributor Icon Contributed by davak Date Icon August 11, 2004  
Tag Icon Tagged: Windows

Previously you could use window.createPopup() to open multiple windows per page. SP2 stops this.


Everybody knows the sites. You go looking for coolie information and find yourself at a porn or warez site by accident. You try to leave and you get slammed with multiple pop-up windows. Click, click, click — you can’t close them fast enough before more are created.

Frequently this was abuse of the window.createPopup() method for creating a new window. Because of this abuse, windows will no longer allow more than one pop-up window per page.

This will trouble some web designers that have legetiment reasons to use multiple pop-up windows.

In the world of SP2, this will no longer be acceptable.

Previous recipe | Next recipe |
 
  • Anonymous
    Er... I think you're confusing "popup windows" with the createPopup method.

    Popup windows (like the ones on questionable sites) are created with window.open, and there is no restriction on this AFAIK (although popup blockers will of course take care of these).

    The createPopup method has *always* created only one popUp object at a time (see the MSDN documentation); this has nothing to do with SP2.
blog comments powered by Disqus