DEV Community

Cover image for Javascript History API
Deveesh Shetty
Deveesh Shetty

Posted on

Javascript History API

This is a submission for DEV Challenge v24.03.20, One Byte Explainer: Browser API or Feature.

Explainer

Want to mess with history?

Well, you can, at least in JavaScript. Check out the History API, to go front and back the browser page
history.forward() - for next page
history.back() - for previous page

You can try it in the browser console as well.

Additional Context

I recently found it while exploring Web APIs in MDN docs, it is quite handy if you are working with vanilla HTML, and want to go back and forth in browser sessions.

Full document - History API MDN

Thank you for reading!

Deveesh Shetty
Github | Twitter

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series