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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combining 'back to' and get url

Status
Not open for further replies.

Hammerhed

Technical User
Jun 20, 2003
3
GB
Problem: I'm calling pages from other sites into an iframe in my own page and want a 'back' button so that once user has browsed 2 or more pages, user can go back a page. At moment, all I can offer is to reload orginal page into the iframe.
Thought about using a back button, eg:
<FORM>
<INPUT TYPE=&quot;Button&quot; VALUE=&quot;Back&quot;
onClick=&quot;history.go(-1)&quot;>
</FORM>
but, of course, this applies only to my pages, not to the off-site pages being browsed in the iframe. I guess that what's needed is to read the url of the iframe pages and feed that to the back button. Can you pls advice how this might be done?
 
Duh!
Sorry for bothering you with this... the script I posted works fine even with external links within an iframe...
Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top