Redirect in Javascript

this might be handy when you need to verify something before you redirect the page from the client.

var new_url = 'http://gullele.com';
window.location.replace(new_url);

Yup, native solution it is..

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*