Questions tagged as 'html5-history'

1
answer

Why do you use the history.pushState function?

I noticed that the history object has some relation to browser history manipulation. There are methods like go and back which are more understandable, but I do not quite understand what the pushState does. What is...
asked by 16.10.2017 / 15:33
2
answers

Joining Modal Bootstrap with HTML5 History API

Is there a way to merge the Bootstrap modal (any version) with the API History ? p> The logic would look like this: When opening the modal the URL in the navigation bar would change to exemplo.com/modal-aberto and when closing the mo...
asked by 27.03.2014 / 04:29
1
answer

What is the use of window.history.replaceState?

Hello, I would like to know what the following code does: window.history.replaceState     
asked by 23.06.2015 / 18:24
1
answer

Browser back button does not work after history.pushstate ()

I'm working on a page that loads part of the content by javascript. I am succeeding and even generates and adds a new url to the browser history. function FiltraItens(criterio){ var UrlJson = baseUrl + "//Json/Listas/ListarItens/"; $.ajax({ m...
asked by 16.03.2018 / 13:34
1
answer

browser back button delete a class

I'm making a website that works on a single page. So when I click on a menu button it scrolls to the area I want with: $('html, body').animate({scrollTop: $('#nomedoid').offset().top},Math.abs(0)); And at the same time I put the window.hist...
asked by 29.03.2017 / 19:34
1
answer

Doubt about $ .getJSON and history.pushState

I'm studying about history.pushState and I plan to develop a site as a way of studying like this link In terms of jQuery (function to load the new content) I understood perfectly, but I had some doubts: Is there a difference between...
asked by 09.04.2015 / 23:22