Javascript go back code Where is the hosts file?
May 04

To redirect the browser clientside. You can use javascript. This can be done in different ways.

Like this:

 
 
<SCRIPT LANGUAGE="JavaScript">
<!-- Script courtesy of http://www.thetutorial.org
window.location="http://www.thetutorial.org";
// -->
</script>
 

or with a function like this:

 
<script language="JavaScript">
<!--Script courtesy of http://www.thetutorial.org 
 move() ;
function move() {
window.location = 'http://www.yourdomain.com'
}
//-->
</script>
 

Leave a Reply