Jump to content

Archived

This topic is now archived and is closed to further replies.

Goatman

refresh?

Recommended Posts

[code]
<script>
function refresh() {
window.location.href="index.php";
}

</script>

<a href="javascript: refresh();">Refresh</a>
[/code]

or

[code]
<meta http-equiv="refresh" content="15; url=target.html">
[/code]

Share this post


Link to post
Share on other sites
[code]
<?php

//  refresh / redirect to an internal web page
//  ------------------------------------------
header( 'refresh: 5; url=/webdsn/' );
echo '<h1>You will be re-directed in 5 seconds...</h1>';


//  refresh / redirect to an internal web page
//  ------------------------------------------
header( 'refresh: 3; url=/' ); # redirects to our homepage
echo '<h1>You will be re-directed in 3 seconds...</h1>';


//  refresh / redirect to an external web page
//  ------------------------------------------
header( 'refresh: 0; url=http://www.example.net' );
echo '<h1>You won\'t know what hit you!</h1>';
?>


[/code]

Share this post


Link to post
Share on other sites
[code]<a href="javascript:location.reload(true)">Refresh page</a>[/code]

Refreshes the page you're looking at when clicked.

Since this is nothing to do with php (as far as I can tell), I'm moving it to the HTML forum.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.