Goatman Posted October 7, 2006 Share Posted October 7, 2006 How can I get a windows to refresh?Thanks Quote Link to comment Share on other sites More sharing options...
marcus Posted October 7, 2006 Share Posted October 7, 2006 [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] Quote Link to comment Share on other sites More sharing options...
redarrow Posted October 7, 2006 Share Posted October 7, 2006 [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 homepageecho '<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] Quote Link to comment Share on other sites More sharing options...
marcus Posted October 7, 2006 Share Posted October 7, 2006 ah, never knew that red, awesome Quote Link to comment Share on other sites More sharing options...
AndyB Posted October 7, 2006 Share Posted October 7, 2006 [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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.