|
HTML DOM httpEquiv Property
Complete Meta Object Reference
Definition and Usage
The httpEquiv property connects the content attribute to an HTTP header.
Syntax
|
metaObject.httpEquiv=content-type|expires|refresh|set-cookie
|
Example
The following example refreshes a page every 5 second:
<html>
<head>
<meta http-equiv="refresh" content="5" />
</head>
<body>
<script type="text/javascript">
x=document.getElementsByTagName("meta")[0];
document.write("Http equiv: " + x.httpEquiv);
</script>
</body>
</html>
|
|
Try-It-Yourself Demos
Redirect a user after 5 seconds
Complete Meta Object Reference
 |
W3Schools' Online Certification Program
The perfect solution for professionals who need to balance work, family, and career building.
More than 3500 certificates already issued!
|
The HTML Certificate documents your knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
|