Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window.open 1

Status
Not open for further replies.

scohan

Programmer
Dec 29, 2000
283
US
Is there a way that I can dermine if the current page has a child window of anohter browser window opened via window.open? I need to handle 'is the user logged in or has the session expired?' processing differently if the user bookmarked the page or if the user got to the page via link which opens a new window. Thanks.
 
Hmmm, I think you can test like so:

if(window.opener)
{
//it is in a popup window
}

To see if it came from a page or whatever you can test against the document.referrer property I think. jared@aauser.com -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top