I remember there's a redirect function in jQuery.
It was like:
$(location).href('http://address.com')
But what was it exactly? I couldn't remember and can't find it using Google Search.
There's no need for jQuery.
window.location.href = 'http://example.com';
Use:
window.location.replace(...)
See this Stack Overflow question for more information:
How do I redirect to another webpage?
Or perhaps it was this you remember:
var url = "http://stackoverflow.com"; location.href = url;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With