Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2007, 03:45 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default window.opener.document.parentWindow in Mozilla

Hi,

 After submitting the page,used this script
document.forms['Form1'].submit();
window.opener.document.parentWindow.history.go(0);
window.close();

window.opener.document.parentWindow.history.go(0) its working fine in IE, but we got script error in Mozilla . In opera we dont get any javascript error but the page is not refresh...

Anyone help me ....

Mohammed Ali
 
Old June 27th, 2007, 01:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

parentWindow is not valid JS, try using parent.window instead
 
Old June 28th, 2007, 01:20 AM
Registered User
 
Join Date: Jun 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I wrote this line in end of the code behind, its working fine all the browsers..
Response.Write("<script language=JavaScript>window.close();</script>");
                Response.Write("<script language=JavaScript>window.opener.location.reload( );</script>");

Thanks for ur help....:)

Mohammed Ali





Similar Threads
Thread Thread Starter Forum Replies Last Post
window.opener for mozilla jun99 Javascript 3 September 1st, 2009 08:57 AM
opener.document davidph Javascript 2 May 26th, 2007 01:36 AM
'window.opener.document' error in IE Colleen Javascript How-To 1 July 25th, 2006 07:57 PM
Problem accessing the window.opener.opener maryuob Javascript 3 January 18th, 2006 05:25 AM
window.opener help fs22 Javascript How-To 6 May 9th, 2004 10:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.