DATAFORMATAS Attribute | dataFormatAs Property

MS Office DHTML, HTML & CSS

DATAFORMATAS Attribute | dataFormatAs Property


Sets or retrieves how to render the data supplied to the object.

Syntax

HTML<ELEMENT DATAFORMATAS = sFormat ... >
Scriptingobject.dataFormatAs [ = sFormat ]

Possible Values

sFormat String that specifies one of the following values:
textData is rendered as text.
htmlData is rendered as HTML.

The property is read/write with a default value of text.

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 DIV example renders data in HTML format.

Sample Code

<DIV DATAFLD="Column2" DATAFORMATAS="html"></DIV>

This SPAN example renders data in HTML format.

<SPAN DATASRC="#bank_acct" DATAFLD="balance" DATAFORMATAS="html"></SPAN>

This TEXTAREA example renders data in text format.

<TEXTAREA DATASRC="#customer" DATAFLD="address" DATAFORMATAS="text" 
    ROWS=6 COLS=60>
</TEXTAREA>

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.
BODY, BUTTON, DIV, INPUT type=button, LABEL, MARQUEE, PARAM, SPAN

See Also

data bindingInternet Link


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.