How To Get the Current URL in Javascript

Author: , September 6th, 2012

var pathname = window.location.pathname;

How To Redirect To A New Page After A Delay Using Javascript

Author: , August 16th, 2011

1 2 3 setTimeout(function() {      window.location.href = "/index.html"; }, 4000); setTimeout(function() { window.location.href = “/index.html”; }, 4000);