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

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

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -