PHP Project-8 :Timed Redirect by PHP+JavaScript

Posted: November 9, 2010 in HTML, Javascript, PHP
Tags: , ,

In this tutorial I discuss how to page redirection by PHP and Javascript.

CODE:

<?php
$redirect = 'https://codehunterbd.wordpress.com';
?>
<SCRIPT LANGUAGE="JavaScript">
redirTime = "550";
redirURL = "<?php echo $redirect ?>";
function redirTimer() {
self.setTimeout("self.location.href=redirURL;",redirTime);}
</script>
<BODY onLoad="redirTimer()">
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s