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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -