redirect - Javascript Redirection not working -


this question has answer here:

i trying redirect external url. use below code.

<script> window.location.href= "www.radar.com"; </script> 

but redirect url http://localhost/webtask/www.radar.com. want redirect www.radar.com. unable find issue.please help....

you needed put whole url below.

window.location = "http://www.radar.com"; 

Comments

Popular posts from this blog

Linux vanilla kernel on QEMU and networking with eth0 -

rdbms - what exactly the undo information lives in oracle? -

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -