asp.net.ph

Skip Navigation Links

SRC Attribute | src Property

Language References


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

Syntax


Inline <script SRC = strUrl ... >
Script [ strUrl = ] oScript.src

Possible Values


strUrl String containing the URL of the source code or data.

The property is read-only with no default value.

Remarks

A script can contain an external reference or code within the block. While the SRC attribute was available in Microsoft® Internet Explorer® 3.02, the src property is exposed through the object model as of Internet Explorer® 4.0.

In Internet Explorer® 5, the SRC attribute of the SCRIPT element can refer to an XML data set if the LANGUAGE attribute is set to XML.

Applies To

SCRIPT



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note