Click here to Skip to main content
15,885,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to push some data to brower history by below code snippet :
JavaScript
var element = document.body.innerHTML;
var obj = { content: element, url: Url };
window.history.pushState(obj, '', Url);


Its working fine for 1st time but for 2nd time(i.e while i am doing some ajax call) it's thowing DataCloneError . And this issue is happening for IE 11/10 ,but working fine with chrome browser .

So kindly suggest some solutions on this .
Posted
Updated 31-Mar-15 21:35pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900