Understanding The Web History API in JavaScript

The JavaScript Web History API With Practical Examples

Mehdi Aoussiad
Oct 24 · 3 min read
Programmer.
Programmer.
Photo by Kevin Ku on Unsplash

What is a Web API?

Coding Laptop.
Coding Laptop.
Photo by Joshua Aragon on Unsplash

The Web History API

The window.history Object in JavaScript.
The window.history Object in JavaScript.
The window.history Object in the console.

The History back Method

The back( ) method.

The History go Method

The go() method.

The History forward Method

The forward() method.

Conclusion

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Mehdi Aoussiad

Written by

Self-taught Front-End Web Developer from Morocco. I love writing about code & #programming in general, I focus more on writing useful articles for the people.

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Mehdi Aoussiad

Written by

Self-taught Front-End Web Developer from Morocco. I love writing about code & #programming in general, I focus more on writing useful articles for the people.

JavaScript In Plain English

New JavaScript + Web Development articles every day.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store