Compartilhar via


content property

Gets or sets meta-information to associate with IHTMLMetaElement::httpEquiv or IHTMLMetaElement::name.

 

Syntax

HRESULT value = object.put_content( v);HRESULT value = object.get_content(* p);

Property values

Type: BSTR

description

Meta-information.

refresh

Integer consisting of the number of seconds to elapse before the document is refreshed. This value requires the IHTMLMetaElement::httpEquiv to be set with the refresh value.

url

Location that is loaded when the document is refreshed. This value requires the IHTMLMetaElement::httpEquiv to be set with the refresh value.

mimetype

MIME type used for the charset value.

charset

Character set of the document. This value requires the mimetype value to be set with a valid MIME type, and the IHTMLMetaElement::httpEquiv to be set with the refresh value.

noopen

Internet Explorer 6 for Windows XP SP2 and later. Hides the Open or Run button on the File Download dialog box. This value requires the IHTMLMetaElement::name attribute to be set with the DownloadOptions value.

nosave

Internet Explorer 6 for Windows XP SP2 and later. Hides the Save button on the File Download dialog box. This value requires the IHTMLMetaElement::name attribute to be set with the DownloadOptions value.

x-ua-compatible

Internet Explorer 8 and later. A comma–delimited list of document compatibility modes supported by the web page. Note that Internet Explorer attempts to display the document in order of the values presented. This value requires the IHTMLMetaElement::httpEquiv to be set with the x-ua-compatible value. For more info, see Specifying legacy document modes.

Note  As of Windows 8, this is supported only for webpages displayed using Internet Explorer for the desktop.

 

Standards information

Remarks

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 Internet Explorer 8, the IHTMLMetaElement::httpEquiv attribute also supports a value of x-ua-compatible, which allows developers to specify the document compatibility mode that 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:

See also

Reference

IHTMLMetaElement::httpEquiv

meta

Conceptual

Defining Document Compatibility