Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Rep Power

    Angry change url in parent window from child window

    Hello friends,

    In my application i have to open new window so i am using 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

  2. #2
    mtyoung is offline Senior Member
    Join Date
    Dec 2008
    Hong Kong
    Rep Power


    i think i should be if (window.opener) window.opener.location.href = ....

    if statement prevent js error if opener closed

Similar Threads

  1. How to change Window Icon
    By sharafat in forum AWT / Swing
    Replies: 7
    Last Post: 01-15-2010, 01:37 AM
  2. Parent & Child window issues......
    By jithan in forum New To Java
    Replies: 2
    Last Post: 09-20-2008, 10:21 AM
  3. Replies: 1
    Last Post: 06-06-2008, 08:55 AM
  4. disable parent window
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-08-2008, 12:15 AM
  5. Replies: 0
    Last Post: 08-03-2007, 05:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts