Language References
Specifies the location of a resource.
Inline |
<element src = strUrl...> |
Script |
Get: strUrl = object.src Set: object.src = strUrl |
strUrl |
String containing the URL to be loaded. |
The property is read/write with no default value.
The following example uses inline event handlers to dynamically set an IMG element’s src attribute.
<img src="../shared/images/samp10.jpg"
height=200 width=200 border=0
onmouseover="this.src='../shared/images/samp09.jpg'"
onmouseout="this.src='../shared/images/samp10.jpg'">
Show me