Security Concerns with window.location.href

erydayNuaxy

New Member
After reading a Wikipedia article about URL redirection I'm wondering if \[code\]window.location.href="http://stackoverflow.com/questions/12756936/page.php"\[/code\] is the best option for a web page redirect. The wikipedia article suggests that\[quote\] However, HTTP headers or the refresh meta tag may be preferred for security reasons and because JavaScript will not be executed by some browsers and many web crawlers.\[/quote\]Is there anything I have to worry about? What could be some alternatives using javascipt if there is a problem? The window.location.href is activated when the user logs in.
 
Back
Top