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!

Closing a window not opened vy the script - Netscape 7.1

Status
Not open for further replies.

nsarun

IS-IT--Management
Nov 5, 2003
6
US
Dear Folks,

The application I am working on uses Frames (TopFrame, SideFrame(Left) and the MainFrame). On the occurance of a certain event, I am closing the window from one of the frames. This is the script I use.

function CloseWin ()
{
window.opener = window;
window.close();
}

Works perfectly well with IE. But not with Netscape. The Javascript console says 'Script may not close windows that were not opened by the script'. Is there any workaround to this?

Would indeed appreciate your help on this.

Arun
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top