NAME Attribute | name Property

DHTML, HTML, & CSS

NAME Attribute | name Property


Sets or retrieves the value specified in the CONTENT attribute of the META object.

Syntax

HTML<META NAME = sName ... >
Scriptingobject.name [ = sName ]

Possible Values

sNameString that specifies one of the following values:
nameArbitrary value.
DescriptionAssociated 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.
GeneratorAssociated CONTENT attribute identifies the name of the application used to create the document.
KeywordsAssociated CONTENT attribute consists of comma-delimited words describing the document. Some search engines use this to allow the user to perform a keyword search.
ProgIDAssociated CONTENT attribute contains the programmatic identifier of the document's default editor.
RobotsAssociated CONTENT attribute indicates whether the containing document should be indexed by search engines that recognize the META object.
allSearch engines can index the containing document.
noindexSearch engines cannot index the containing document.
TemplateAssociated CONTENT attribute specifies the location of the template used to edit the document. Use this in conjunction with the ProgID META object if the editor supports document templates.

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.

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

Example

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 META tag is associated with the programmatic identifier of Microsoft® Word, the button displays the Microsoft 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">

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.