www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
Properties
 content Property
CONTENT Attribute | content Property

Sets or retrieves meta-information to associate with httpEquiv or name.

Syntax

HTML<META CONTENT = vContent... >
Scripting[ vContent = ] META.content

Possible Values

vContentString that specifies or receives one of the following values.
descriptionMeta-information.
refreshInteger consisting of the number of seconds to elapse before the document is refreshed. This value requires the httpEquiv to be set with the refresh value.
urlLocation that is loaded when the document is refreshed. This value requires the httpEquiv to be set with the refresh value.
mimetypeMIME type used for the charset value.
charsetCharacter set of the document. This value requires the mimetype value to be set with a valid MIME type, and the httpEquiv to be set with the refresh value.
noopenMicrosoft Internet Explorer 6 for Microsoft Windows XP Service Pack 2 (SP2) and later. Hides the Open or Run button on the File Download dialog box. This value requires the name attribute to be set with the DownloadOptions value.
nosaveInternet Explorer 6 for Windows XP SP2 and later. Hides the Save button on the File Download dialog box. This value requires the name attribute to be set with the DownloadOptions value.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

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

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=Windows-1251">

This example disables theme support for the document.

<META HTTP-EQUIV="MSTHEMECOMPATIBLE" CONTENT="no">

Standards Information

This property is defined in HTML 3.2 World Wide Web link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 World Wide Web link.

Applies To

META
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG