Prevent iframe from pushing history state to parent window's history

I am working on a project that is using epub.js and I realized whenever a new chapter is rendered, it will push a state to the history of the parent window. Setting the contentWindow location instead of the iframe's "src" attribute will prevent this to happen.