Javascript Reference
Categories: FRAME

javascript FRAME src

@March 15, 2008, 1:22 a.m.
srcFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Provides the URL of the external content file loaded into the frame. To change the content, assign a new URL to the property. For cross-platform applications, you can also set the location.href property of the frame to load a different document into the frame using window-related references (parent.frameName.location.href = "newDoc.html").

 
Example
 
parent.document.getElementById("myFrame").src = "images/altNavBar.jpg";
 
Value

Complete or relative URL as a string.

 
Default

None.


Powered by Linode.