Using:
window.location.replace(...)
See this SO question for more information:
How to redirect to another webpage in javascript / jQuery?
Or perhaps you remember this:
var url = "http://stackoverflow.com"; $(location).attr('href',url);
Curt Aug 16 2018-11-11T00: 00Z
source share