[Javascript] Is Window A Popup Detection?

Peter-Paul Koch gassinaumasis at hotmail.com
Sat Jan 11 09:53:01 CST 2003


>Greetings,
>Is there a way to detect whether the current window has been opened
>by window.open versus being opened by a regular hyperlink?
>Any help would be appreciated.

if (self.opener)
  // window is opened as a popup, take appropriate action

--------------------------------------------------
ppk, freelance web developer
Interaction, copywriting, JavaScript, integration
http://www.xs4all.nl/~ppk/
Column "Keep it Simple": http://www.digital-web.com/columns/keepitsimple/
Nieuw: Jaaroverzicht 2002
http://www.naarvoren.nl/artikel/jaaroverzicht_2002.html
--------------------------------------------------


_________________________________________________________________
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup




More information about the Javascript mailing list