Retrieves the URL to an external file that contains the source code or data.
Syntax
| HTML | <element src="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
the URL of the source code or data.
Remarks
A script element can use the SRC attribute to refer to code stored in an external script library. If a script element refers to an external library and also contains code local to the block defined by the element, the code in the external library is executed before the local code.
See also
Build date: 11/28/2012