I need to redirect in a javascript file to a given URI specified by the user.
So a quick example how I do this:
function redirect(uri) { if(navigat
You can just use: window.location = "http://example.com";
window.location = "http://example.com";