<html>
<body>
This is a simple test
<br><br>
<a href="#" onClick="document.getElementById('1').contentWindow.history.back(-1);">FRAME 1 BACK</a> <a href="#" onClick="document.getElementById('2').contentWindow.history.back(-1);">FRAME 2 BACK</a>
<br><br>
iFrame 1<br><iframe id="1" name="1" src="http://www.bing.com" style="width: 90%; height: 300px"></iframe><br><br>
iFrame 2<br><iframe id="2" name="2" src="http://www.bing.com" style="width: 90%; height: 300px"></iframe><br><br>
</body>
</html>
ASKER
frame1.contentWindow.history.go(-1)
document.getElementById('frame1').contentWindow.history.go(-1)
ASKER
ASKER
function iframe_update_history(frame){
current_iframe_url = document.getElementById(frame).contentWindow.location.href;
window['current_iframe_active'] = ("history_" + frame);
window['current_iframe_active'].push(current_iframe_url);
}
ASKER
JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.
TRUSTED BY
you probably need to test some URLs with same domain instead