Tag Archives: Javascript Redirect

Redirect Page In Javascript

ASSIGN REDIRECT URL REDIECT TO GO BACK WINDOW NAVIGATION WINDOW LOCATION REPLACE I added the code to redirect the page using javascript ASSIGN REDIRECT URL <script language=”javascript” type=”text/javascript”> window.location.href=REDIRECTURL; //or window.location=REDIRECTURL; </script> REDIECT TO GO BACK <script language=”javascript”> alert(“Go Back”); window.history.back(-1); </script> WINDOW NAVIGATION <script language=”javascript”> window.navigate(REDIRECTURL); </script> WINDOW LOCATION REPLACE <script language=”javascript”> window.location.replace(REDIRECTURL); </script>