• Sunday , 19 November 2017

JavaScript History API Basics

Code Canyon

Want more? Explore the library at https://www.codecourse.com/lessons

Official site


Original source

3d Ocean

Related Posts


  1. bejbejbej1
    August 4, 2017 at 06:53

    What if the user presses the refresh button? What else would i need to do for the user to be able to refresh to the current content they are on, rather than the whole page. if you press the refresh button on what you currently have, it will give an error page. Anyone know a simple way out of this?

  2. Berkan Bilgin
    August 4, 2017 at 06:53

    Perfect introduction, thx a lot

  3. Baron
    August 4, 2017 at 06:53

    Do you have the source code? I followed the tutorial but am getting undefined?=229192

  4. Guy Katz
    August 4, 2017 at 06:53

    why not use history.pushState(href, null, href); and later retrieve it from popstate's e.state instead of manipulating and parsing location.pathname?

  5. Dheeraj Thedijje
    August 4, 2017 at 06:53

    You don't how how much this tutorial worth for me, i was searching this for years.. and a word came up History api and here i did what you did, and done! thanks a ton

  6. Larry D'Almeida
    August 4, 2017 at 06:53

    Great intro. Thanks!

  7. LustigVideo Youtube
    August 4, 2017 at 06:53

    Dude thanks very much!!!!

  8. desdichago
    August 4, 2017 at 06:53

    Amazing explanation, thank you!

  9. TransmiTV
    August 4, 2017 at 06:53

    Thank you SO much for this tutorial. Super helpful!!

  10. Takanga com
    August 4, 2017 at 06:53

    Tu eres el mejor.

  11. Lucas Saliés Brum
    August 4, 2017 at 06:53

    Works with PERFECTION!!!

    Thanks 🙂

  12. loverofCHRIST kk
    August 4, 2017 at 06:53

    thanks alot for all your free lectures. you have played a very great role in my life . Alex the great. only GOD can continue to reward you. stay blessed

  13. Piratekiller99
    August 4, 2017 at 06:53

    Good for the basics but would be better in combination with .htaccess and rewrite rules
    -> the content could be loaded dynamically from a db
    and you don't need to link to the content.php files manually if you add a new page

  14. SerenityReceiver
    August 4, 2017 at 06:53

    First: Thank you.
    Then: Why is there "no way" 15:10  of reliably getting the href…? It is relative and it is set by you, also there is nothing to split off of cat.php (which is href)…..?

  15. Abdelaziz Elrashed
    August 4, 2017 at 06:53

    Great Tut, Google is using this feature too in their translations page

  16. Klajdi Qafzezi
    August 4, 2017 at 06:53

    your work keeps me motivated to work on big projects !! thank you for your great videos !! keep it up.

  17. ArnoldsK
    August 4, 2017 at 06:53

    Can't we use "return false;" instead of "e.preventDefault();"?
    Never mind lol http://stackoverflow.com/questions/1357118/event-preventdefault-vs-return-false

Leave A Comment

You must be logged in to post a comment.