the page 2 window open when I click open page 2 in page 1.
and page 3 window open when I click open page 3 in page 2.
now I need a feature.I need the page 3 take place page 1 when I click open page 3 in page 2.and also the page2 close.
Please show me how to do it.Thanks so much.
I confuse to use window.location now.
Okay you want:
Page 1:
click "open page 2" to open it in a new window
Page 2:
click "open page 3" to open page 3 in Page 1's window and close Page 2's window.
I am rusty on the use of parent and self, but this MIGHT be how you could do that.
when the user clicks the "open page 3" button on page 2, try using:
parent.location.replace("page3.html") OR parent.location="page3.html"
AND
self.close()
Bookmarks