SCRIPT.src (Property)

The URL where the source text for a script block is kept.


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.src

This property is read-only. There would be little point in reloading the script code from a new URL and it could be quite dangerous to allow this to happen under script control.

MSIE may yet still provide some access to the contents of a script object in a way that lets you change the script source contained in a <SCRIPT> block. It certainly lets you read the source text.


See also:<SCRIPT SRC="...">

Property attributes: