I'm using window.showModalDialog but having an issue trying to set the parent window(main browser).
I open modal window A which is then opens modal window B, top of modal window B onload I do window.opener.close()". My issue now is when i'm finished with B I set parent window(main browser) to a new url with window.opener.location. So my problem is modal window A the parent has been closed so window.opener.location will not work. Any ideas what I could do to set the actual parent parents url?
Sorry bit confusing hope someone under stands.
You could try saving parent.parent beforehand, but with the intermediate window reloaded I don't know if it will work.
Thanks for you reply, not quite sure what you mean by saving parent.parent though.
Something like this maybe, but I wouldn't guarantee it:
Originally Posted by dclarke
var w = parent.parent;
/* whatever you do that refeshes the intermediate window */
w.location.href = myURL;
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread