-7

I did not understand how hashbang and pushstate differ in JavaScript...

pushState()

Koen Peters
  • 12,798
  • 6
  • 36
  • 59

1 Answers1

2

They are two different things.

  1. Hashbang is a programming pattern used to load content using Ajax in such a way that machines (like google bots) can index this content.
  2. Pushstate is a javaScript API function meant to store a specific state of the current page in the window.history object so that you can go back to that state using the back button.
Community
  • 1
  • 1
Koen Peters
  • 12,798
  • 6
  • 36
  • 59