I have a section on a page that pulls data from a database dynamically, based on the hash. The HTML that makes up this section stays the same, but values and data are swapped in and out when the hash changes, or is loaded. Within this div, I have an embedded YouTube video, like this:
<iframe width="296" height="198" src="http://www.youtube.com/embed/sdtz7QhA9FE" frameborder="0" allowfullscreen></iframe>
The src of the iframe is changed dynamically from the hash. However, the loading of the new src is recorded in my back history in addition to the hash state. This requires one back press to wipe the src of the iframe, and then another back press to return to actual previous hash state.
Is there any way to prevent this? If you need more details, please let me know.