Sets or retrieves the value specified in the content attribute of the meta object.
dhtml语法
HTML | <META NAME
= sName... >
|
---|
Scripting | META.name [ = sName ] |
---|
DHTML可能的值
sName | String that
specifies or receives one of the following values.name | Arbitrary value. | Description | Associated CONTENT attribute describes the containing document. Some search engines use this to provide the user with a document summary in the result of a search. | Generator | Associated CONTENT attribute identifies the name of the application used to create the document. | Keywords | Associated CONTENT attribute consists of comma-delimited words describing the document. Some search engines use this to allow the user to perform a keyword search. | ProgID | Associated CONTENT attribute contains the programmatic identifier of the document's default editor. | Robots | Associated CONTENT attribute indicates whether the containing document should be indexed by search engines that recognize the meta object. Possible values include the following:
all | Search engines can index the containing document. | noindex | Search engines cannot index the containing document. |
| Template | Associated CONTENT attribute specifies the location of the template used to edit the document. Use this in conjunction with the ProgID?B>meta object if the editor supports document templates. |
|
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
the name attribute typically is assigned one of the preceding well-defined values, but any arbitrary value can be specified. custom tools can be developed to perform special actions on documents containing arbitrary meta tags.
to enable the smart edit features in microsoft® internet explorer 5 or later, add a meta tag to the head of the document. associate progid with the name attribute, and associate the programmatic identifier of the desired editor with the content attribute. if the specified editor is not installed or properly registered on the user's system, the edit button is not displayed. consult the documentation of your editor to determine its programmatic identifier.
DHTML代码范例
This example adds meta tags to the head of an HTML document to display a smart edit button on the toolbar as of Internet Explorer 5. Because the ProgID?B>meta tag is associated with the programmatic identifier of Microsoft Word, the button displays the Word icon. When you click the button, Internet Explorer loads the document into Word using the specified document template.
<META NAME="ProgID" CONTENT="word.document">
<META NAME="Template" CONTENT="C:\Program Files\Microsoft Office\Office\html.dot">
是否符合公共标准
This property is defined in
HTML 3.2 and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To