SCRIPT.text (Property)

The textual content of a script block.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-mySCRIPT.text

You can use this to check for the existence of a function before attempting to call it.

Warnings:

Property attributes:

ReadOnly.