Goatman Posted October 7, 2006 Share Posted October 7, 2006 How can I get a windows to refresh?Thanks Link to comment https://forums.phpfreaks.com/topic/23285-refresh/ 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] Link to comment https://forums.phpfreaks.com/topic/23285-refresh/#findComment-105560 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] Link to comment https://forums.phpfreaks.com/topic/23285-refresh/#findComment-105569 Share on other sites More sharing options...
marcus Posted October 7, 2006 Share Posted October 7, 2006 ah, never knew that red, awesome Link to comment https://forums.phpfreaks.com/topic/23285-refresh/#findComment-105572 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. Link to comment https://forums.phpfreaks.com/topic/23285-refresh/#findComment-105668 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.