Feb 01
how to redirect page with time interval
Some time we need to redirect page to some other page or url within some time limit.
fortunately its really easy todo do with HTML's meta tag
Meta tag
<meta [email protected]@equiv="refresh" content="10;url=http://example.com/">
replace
@[email protected]
with -
in above line, due to security reason it is replced in above code.here content="10;url=http://example.com/"
is essential part 10
is the seconds, after how much seconds page will get redirect to give http://example.com/
URL
Generally we can pair this meta tag with some page description for informing user what is happening.
replace
@[email protected]
with -
in above line, due to security reason it is replced in below code.Some description for redirection
<html>
<head>
<meta [email protected]@equiv="refresh" content="10;url=http://example.com/">
<title>Page Moved</title>
</head>
<body>
This page has moved. Click
<a href="http://www.example.com">here</a> to go to the new page.
OR page will refresh to new URL in 10 seconds automatically.
</body>
</html>
This can be really smart and easy way to redirect users on temporary basis.
Ad
Related Questions
- → October CMS - cannot select themes
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → Trait 'IlluminateFoundationBusDispatchesJobs' not found
- → .tsx webpack compile fails: Unexpected token <
- → Webpack, React & Babel, not rendering DOM
- → Undefined Result for Variable with Javascript innerHTML function
- → how to retrieve image from database in laravel 5.1?
- → Laravel 5.1 FatalThrowableError in ProviderRepository.php
- → What is causing the web page to reload?
- → Deploying apps via CodePush or AppHub
- → Analysis of Flux implementations
- → Is Laravel 5.1 Compatible with PHP 7
- → List of react-native StyleSheet properties and options
- → Status of AudioWorkerNode in Web Audio API
Ad