MSDN Library
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

src attribute | src property

Retrieves the URL to an external file that contains the source code or data.


HTML<element src="p" ... >

p = object.src


Property values

Type: String

the URL of the source code or data.


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




© 2016 Microsoft