Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Closing a popup window from parent window, Opera 7

Reply
Thread Tools

Closing a popup window from parent window, Opera 7

 
 
janne
Guest
Posts: n/a
 
      08-20-2003
Hi,

I am attempting to close a popup window from parent window with Opera.
Popup is opened with parent window in page A, then actions in popup
window cause parent window to move to page B, then page B tries to
close the popup. The code which does this is:

--------

Page A:

function openPopup() {
popupWin = window.open('http://thenewaddress', 'popupname');
}

--------

Page B:

function closePopup() {
popupWin = window.open('', 'popupname');
popupWin.close();
}

--------

With Netscape & IE this works and closes the popup, but Opera gives an
error (javascript console):

Inline script thread
Error:
name: ReferenceError
message: Security error: attempted to read protected variable
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
closing the child window and refreshing the parent window Ane007 The Lounge 1 05-05-2008 06:54 AM
Closing popup window when closing parent window? =?Utf-8?B?Vk1J?= ASP .Net 3 02-15-2007 08:29 AM
Closing sub window from parent window Satya ASP .Net 0 12-15-2005 05:27 PM
Closing child window and refreshing Parent window automatically =?Utf-8?B?U2lsZWVzaA==?= ASP .Net 4 10-14-2004 02:01 AM
Closing child window WITHOUT closing parent thomas Javascript 0 10-23-2003 04:10 PM



Advertisments