Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Embedded YouTube Video SRC Change Counted as History State #34

jackrugile opened this Issue · 0 comments

1 participant



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="" 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.