Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves a URL to be loaded by the object .
Syntax
< ELEMENT SRC = sURL ... > |
object.src [ = sURL ] |
Possible Values
sURL | String that specifies or receives the URL. |
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 .
Examples
This example uses the src property to change the image's SRC attribute.
<BODY onmousedown="oImage. src ='sphere.jpg'" onmouseup="oImage. src ='cone.jpg'">This example uses the src property to change the SRC attribute of an iframe .
function changeFrame()Standards Information
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
|
APPLET , EMBED , FRAME , IFRAME , IMG , INPUT type=image , XML |
Home | Top | Website design | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |