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