replaceState in HTML5 and iframe -


i trying load webpage "a.html" in frame in page "b.html". also, running script replaces url "a.html" using history.replacestate({},"","/a.html") in "b.html". running above script before iframe gets loaded i.e. url of window changes "b.html" "a.html". url changes "a.html", "a.html" page doesnt load in iframe. whereas, if dont run above script, "a.html" page gets loaded in iframe. can please tell me why webpage doesnt load in iframe?

thanks in advance.

before page loads, run replacestate() , redirect browser same page. page runs replacestate() , redirects browser...... same page again. seems me forever redirecting browser same page , that's why iframe won't load


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -