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

    Angry 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

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

    Default

    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, 12:37 AM
  2. Parent & Child window issues......
    By jithan in forum New To Java
    Replies: 2
    Last Post: 09-20-2008, 09:21 AM
  3. Replies: 1
    Last Post: 06-06-2008, 07:55 AM
  4. disable parent window
    By ismailsaleh in forum AWT / Swing
    Replies: 1
    Last Post: 01-07-2008, 11:15 PM
  5. Replies: 0
    Last Post: 08-03-2007, 04: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
  •