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

php - Extract Text from HTTP referer -

Receive udp packets in android gstreamer -

Reversible shuffling a int array in java -