Showing posts with label css. Show all posts
Showing posts with label css. Show all posts

Thursday, June 19, 2008

PHP redirect

If you want to redirect to another page in php use the header function to set a new location


header("Location: redirectTo.html");
?>

Javascript setInterval, and setTimeout

Here is how you can set a timer in javascript.

setInterval(expression,interval)

or

setTimeout(expression,interval)

expression is a function that you want to call where interval is the time in milleseconds.

setInterval will repeatedly call the expression on the interval whereas setTimeout will call it only once.