javascript - What is the best replace for header location of php in js? -


what equivalent of php header location function

<?php  header("location:somepage.php"); ?> 

in javascript? javascript has can same header function? if yes, what's that?

the javascript equivalent is;

window.location.href = "somepage.php" 

more info: http://www.tutorialspoint.com/javascript/javascript_page_redirect.htm


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -