Retrieves the URL to an external file that contains the source code or data.
dhtml语法
HTML | <SCRIPT SRC
= sURL... >
|
---|
Scripting | SCRIPT.src [ = sURL ] |
---|
DHTML可能的值
sURL | String that
specifies or receives the URL of the source code or data. |
The property is read/write.
The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.
remarks
the src attribute first was available in microsoft® internet explorer 3.022. 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.
a script can contain an external reference as well as code within the block. the code specified by the src property precedes the code contained within the document.
是否符合公共标准
This property is defined in
HTML 4.0 and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To