SPANNN n/a   IE 4   DOM 1

The SPAN object reflects the SPAN element. This element is used primarily as a container for assigning styles to inline content elements.

 
HTML Equivalent
<SPAN>
 
Object Model Reference
IE [window.]document.all.elementID
dataFldNN n/a   IE 4   DOM n/a
 Read/Write
 

Used with IE 4 data binding to associate a remote data source column name with the HTML content inside a SPAN element. A DATASRC attribute must also be set for the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source.

 
Example
document.all.mySpan.dataFld = "comment"
 
Value
Case-sensitive identifier of the data source column.
 
Default None.
dataFormatAsNN n/a   IE 4   DOM n/a
 Read/Write
 

Used with IE 4 data binding, this property advises the browser whether the source material arriving from the data source is to be treated as plain text or as tagged HTML.

 
Example
document.forms[0].mySpan.dataFormatAs = "HTML"
 
Value
IE 4 recognizes two possible settings: text | HTML.
 
Default text
dataSrcNN n/a   IE 4   DOM n/a
 Read/Write
 

Used with IE 4 data binding to specify the name of the remote ODBC data source (such as an Oracle or SQL Server database) to be associated with the element. Setting both the dataFld and dataSrc properties to empty strings breaks the binding between element and data source.

 
Example
document.all.mySpan.dataSrc = "#DBSRC3"
 
Value
Case-sensitive identifier of the data source.
 
Default None.
scrollLeft, scrollTopNN n/a   IE 4   DOM n/a
 Read/Write
 

The distance in pixels between the actual left or top edge of the element's physical content and the left or top edge of the visible portion of the content. Since a SPAN element is not a scrollable container, both values are zero. These properties are not available in the Win32 version of Internet Explorer 4.

 
Value
Positive integer or zero.
 
Default 0
blur( )NN n/a   IE 4   DOM n/a

Removes focus from the current element and fires an onBlur event (in IE). No other element necessarily receives focus as a result.

 
Returned Value
None.
 
Parameters
None.
focus( )NN n/a   IE 4   DOM n/a

Gives focus to the current element and fires the onFocus event (in IE). If another element had focus at the time, it receives an onBlur event.

 
Returned Value
None.
 
Parameters
None.