Redirect tramite codice HTML5
Redirect tramite codice HTML5
Sfruttando l’uso dei meta tag possiamo reindirizzare qualsiasi sito inserendo anche il tempo di attesa.
Esempio:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="refresh" content="1; url=http://landofworld.altervista.org">
</head>
<body>
</body>
</html>
Spiegazione:
- content = “1; …” vuol dire che il tempo di attesa finchè si reindirizzi sull’url è di 1 secondo.