Results 1 to 2 of 2
- 07-09-2009, 10:38 AM #1
change url in parent window from child window
Hello friends,
In my application i have to open new window so i am using window.open javasript from my current jsp page. that working well. now from my new window i have to change url of my parent window. i am having one link in my new open (child) window . on clicking that i have to change my parent window url.
i found javascript for that but thats not working. sript is......
opener.opener.location.href = newlocation;
any idea how to do this.Rakesh Mehta
- 07-09-2009, 12:17 PM #2
Senior Member
- Join Date
- Dec 2008
- Location
- Hong Kong
- Posts
- 473
- Rep Power
- 5
i think i should be if (window.opener) window.opener.location.href = ....
if statement prevent js error if opener closed
Similar Threads
-
How to change Window Icon
By sharafat in forum AWT / SwingReplies: 7Last Post: 01-15-2010, 12:37 AM -
Parent & Child window issues......
By jithan in forum New To JavaReplies: 2Last Post: 09-20-2008, 09:21 AM -
How to resize the components with the change in the size of the window?
By shaunak kiwalkar in forum SWT / JFaceReplies: 1Last Post: 06-06-2008, 07:55 AM -
disable parent window
By ismailsaleh in forum AWT / SwingReplies: 1Last Post: 01-07-2008, 11:15 PM -
How to create a new pop up window from jsp without changing the URL address of parent
By nihar1213 in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 08-03-2007, 04:21 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks