body window location, jQuery


$(document.body).click(function () {
  console.log(window.location.href);
  window.location = "newindex.html";
});

Advertisements