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
Post a Comment