Reload  window from another window.

DevinFischer
DevinFischer used Ask the Experts™
on
ok, so I have three windows.

tom, larry, and steve

tom opens larry with the funct1 function:
<SCRIPT>
function funct1(){
var tomurl="page1.asp"
tom=window.open(tomurl,"tomwin","width=750,height=550,")
}
</SCRIPT>

tom opens larry with the funct2 function like this:

<SCRIPT>
function funct2(){
var larryurl="page2.asp"
larry=window.open(larryurl,"larrywin","width=750,height=550,")
}
</SCRIPT>

Now larry opens a third window with:

<SCRIPT>
function funct3(){
var steveurl="page3.asp"
steve=window.open(steveurl,"stevewin","width=750,height=550,")
}
</SCRIPT>

What function would I have to write to reload larry from steve????

I have tried:
<SCRIPT>
function funct4(){
larry.location.reload()
}
</SCRIPT>

What am I doing wrong???   Please help!!!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
hello,

Use parent keyword not larry.  larry is parent window for steve.

best luck!
[base window] -> [Tom] -> [Larry] -> [Steve]

correct?

From Steve, to refresh Larry, you'll need to do this:

window.opener.location.reload();


You may have to fiddle with the reload, but the correct syntax to get the parent window is window.opener.

Commented:
right!

Author

Commented:
Thank you for your help!!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial