Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Traffic Redirect Script, Redirect your traffic when user clicks back button to another url :3
var urlToSend = ''; // change this shit :3
jQuery(document).ready(function($) {
if (window.history && window.history.pushState) {
window.history.pushState('forward', null, './#here');
$(window).on('popstate', function() {
window.location = urlToSend;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment