CONTENT Attribute | content Property

MS Office DHTML, HTML & CSS

 
Click to return to the DHTML, HTML & CSS home page    
complete Property     cookie Property     DHTML Properties    

CONTENT Attribute | content Property


Sets or retrieves meta-information to be associated with HTTP-EQUIV or NAME.

Syntax

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

Possible Values

vContent Variant that specifies one or more of the following values:
descriptionMeta-information.
refreshInteger consisting of the number of seconds to elapse before the document is refreshed. This value requires the HTTP-EQUIV attribute to be set with the refresh value.
urlLocation that is loaded when the document is refreshed. This value requires the HTTP-EQUIV attribute 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 HTTP-EQUIV attribute to be set with the Content-Type value.

The property is read/write with no default value.

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

Example

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

Sample Code

<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">

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
Version data is listed when the mouse hovers over a link, or the link has focus.
META

Back to topBack to top

Did you find this topic useful? Suggestions for other topics? write us!Internet Link

© 1999 microsoft corporation. all rights reserved. terms of useInternet Link.