Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code to navigate browser back a page 1

Status
Not open for further replies.

thomsons

Programmer
Dec 16, 2002
19
0
0
GB
Simple question from a newbie

PAGE1.ASP contains the window.open code for opening the web page PAGE2.ASP

Because PAGE2.ASP opens in a new pop-up window it leaves PAGE1.ASP still open but its blank as there is no other code in PAGE1.ASP.

What I would like to do is to use code to get PAGE1.ASP to go back one page (same as clicking the BACK button on the toolbar).

Any advice on the best way to achieve this would be greatly appreciated.

S.
 

Something like this from within your popup window should work:

Code:
window.opener.history.back();

Hope this helps,
Dan

 
Cheers Dan,

The code I got to work was window.history.back() but you got me in the right direction.

Cheers,
Shaz



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top