I am writing a web application that will run in kiosk mode on a touch screen. I am currently only targeting it for running on Firefox 3. A few of the use cases I have need to visit external sites. I wish to do so with an embedded browser, which I'm tackling with the help of an <iframe>
. I need back/forward buttons for the embedded home page.
I've managed to access the history object of the iframe with
var w = document.getElementById('embeddedBrowser').contentWindow;
w.history.back();
The history
of the embedded window is the same as that of the parent window. Therefore for a newly loaded <iframe>
, this call will go back to the previous page of the system.
Is there any way to avoid this or a more correct way of solving this?