Skip to content

Instantly share code, notes, and snippets.

View maxbizbd's full-sized avatar
🎯
Focusing

Masud Chowdhury maxbizbd

🎯
Focusing
  • Earth
View GitHub Profile
@maxbizbd
maxbizbd / history_navigation.js
Created May 29, 2024 17:22 — forked from serin113/history_navigation.js
A simple JavaScript that lets you use your browser's back/forward buttons for in-page navigation by adding custom 'next' and 'previous' events to the window object.
/*
* Lets you use your browser's back/forward buttons for in-page navigation by
* adding custom 'next' and 'previous' events to the window object.
*
* Copyright (c) 2011 Tobias Schneider <schneider@jancona.com>
* This script is freely distributable under the terms of the MIT license.
*
* Example:
*
* window.addEventListener('next', function(){
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead