httpEquiv property
Gets or sets information used to bind the value of a IHTMLMetaElement::content attribute of a meta element to an HTTP response header.
![]() |
Syntax
HRESULT value = object.put_httpEquiv( v);HRESULT value = object.get_httpEquiv(* p);
Property values
Type: BSTR
the information in the response header. See HTTP Response Headers for a list of possible values.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 7.4.4
Remarks
If the property is omitted, the IHTMLMetaElement::name property should be used to identify the meta-information. The IHTMLMetaElement::httpEquiv property is not case-sensitive.
Developers using the IHTMLMetaElement::httpEquiv and IHTMLMetaElement::content attributes to refresh documents from alternate URLs should treat the value of IHTMLMetaElement::content as untrusted data. For more information, please see Security Considerations: Dynamic HTML.
As of Windows Internet Explorer 8, the IHTMLMetaElement::httpEquiv attribute also supports a value of x-ua-compatible, which allows developers to specify a legacy document mode that Windows Internet Explorer should use to display a webpage. For full details, see Specifying legacy document modes. (As of Windows 8, legacy document modes are supported only for Internet Explorer for the desktop.)
As of Windows 8, you can specify the following values for use with Windows Runtime apps using JavaScript:
- ms-https-connections-only requires Windows Runtime apps using JavaScript to use secure (HTTPS) connections. For more info, see How to require an HTTPS connection.
See also
- Reference
- IHTMLMetaElement::content
- meta
- Conceptual
- Defining Document Compatibility
