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
Android supports document.location without the href property
document.location
href
Try to use:
function redirect(uri) { if(navigator.userAgent.match(/Android/i)) document.location=uri; else window.location.replace(uri); }