Javascript Reference
Categories: SCRIPT

javascript SCRIPT text

@March 15, 2008, 1:22 a.m.
textFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Indicates the text content of the element. Assigning script statements to this object has different results in various browsers. In late versions of IE for Windows, the new value is added to the existing script, even though the property no longer reports the previous script text; in Netscape 6, the assigned values are ignored; and in IE 5 for Macintosh, the property is treated as read-only.

 
Example
 
var scriptText = document.getElementById("script3").text;
 
Value

String.

 
Default

None.


Powered by Linode.