DATAFORMATAS Attribute | dataFormatAs Property
Sets or retrieves how to render the data supplied to the object.
Syntax
HTML <ELEMENT DATAFORMATAS = sFormat ... > Scripting object.dataFormatAs [ = sFormat ]
Possible Values
sFormat String that specifies one of the following values:
text Data is rendered as text. html Data 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 properties.
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 ] Platform Version 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
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.