http-equiv attribute | httpEquiv property

all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize
This topic has not yet been rated - Rate this topic

Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.

HTML 4.01 Specification, Section 7.4.4

Syntax

HTML<element http-equiv="p" ... >
JavaScript

p = object.httpEquiv

Property values

Type: String

the information in the response header. See HTTP Response Headers for a list of possible values.

Standards information

Remarks

If the property is omitted, the name property should be used to identify the meta-information. The httpEquiv property is not case-sensitive.

Developers using the httpEquiv and content attributes to refresh documents from alternate URLs should treat the value of content as untrusted data. For more information, please see Security Considerations: Dynamic HTML.

As of Windows 8, you can specify the following values for use with Windows Store apps using JavaScript:

Examples

This example causes the browser to reload the document every two seconds.


<meta http-equiv="refresh" content="2">

This example sets the character set for the document.


<meta http-equiv="Content-Type"
      content="text/html; charset=utf-8">

This example disables theme support for the document.


<meta http-equiv="msthemecompatible" content="no">

This example tells a Windows Store app using JavaScript to display a webpage in a Windows Store app using JavaScript, if possible.


<meta http-equiv="X-UA-Compatible" content="IE=9">

See also

Reference
content
meta
Conceptual
Defining Document Compatibility

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.