asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > SRC Attribute

SRC Attribute | src Property


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



Check out related books at Amazon

© 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