i am trying to load a webpage say "a.html" in a frame in the page "b.html". Also, i am running the script which replaces the url with "a.html" using history.ReplaceState({},"","/a.html") in "b.html". I am running the above script before iframe gets loaded i.e. url of the window changes from "b.html" to "a.html". But as soon as the url changes to "a.html", "a.html" page doesnt load in iframe. Whereas, if i dont run the above script, "a.html" page gets loaded in iframe. Can anyone please tell me why the webpage doesnt load in iframe?
Thanks in advance.