Back btn for iframe

DescriptionJavascript snippet by - 05/23/11

Use this javascript to take an iframe back one page. Basically you create a remote back button for your iframe in an attempt to control the iframe browsing.

Tags

<iframe name="codeframe" src="http://FILEURL" style="width:100%; height:60%; background:#fff;"></iframe>
<a href="#" onClick="codeframe.history.go(-1);">back</a>
  • Share
Authored by: Adam J Nowak
http://hyperspatial.com

Comments and Feedback