embedded swf & browser history
Does anyone know the affect that playing a swf file has on browser history?
All I want to do is play a swf file without screwing up the previous button. However, I do not want to use a second window - it all needs to remain within the window already open. Below I describe 3 scenarios that I already tried and which do not work properly:
The first thing I tried was giving the swf it's own page. It went like this:
The scenario goes like this:
On page 10, a user clicks a button that uses location.replace to send them to page X. On page X, location.replace is used in the embed tag to open the swf file. On the last slide of the swf, location.replace is used to send user back to page 10. So then on page 10, the previous button returns to page 9 and then page 9's previous returns to page 10 and there is another loop between 9 and 10.
The last thing I tried (and which I'm currently using) is getting rid of page X altogether and using a hidden div tag on page 10 for the embedded swf code. When the user clicks the button on page 10, the div tag turns visible and the swf is set to play. The last slide of the swf file uses location.replace to return to page 10 (which somehow makes the div tag invisible again). Now page 10's previous button goes to page 10, and then to page 9 BUT with no loop. In other words, the user needs to click previous twice to get back to page 9, but is then able to navigate backwards/forwards as usual.