I have the following code:
History.Adapter.bind(window,'statechange',function(){
console.log("triggered");
How can I trigger this function from anywhere in my code?
I have the following code:
History.Adapter.bind(window,'statechange',function(){
console.log("triggered");
How can I trigger this function from anywhere in my code?
If you are using History.js then use
History.pushState(data,title,url);