I am refreshing my page using jQuery:
location.reload();
This is working great but I want to refresh the same page by passing a parameter t
var singleText = "single"; var s = window.location.search; if (s.indexOf(singleText) == -1) { window.location.href += (s.substring(0,1) == "?") ? "&" : "?" + singleText; }