1. SRC: defines the URL of the file displayed in the framework. Displays the content of the SRC specified path in the frame.
2. Modify the src attribute of the frame:
The src attribute of the Framework (frame) is read-only. If you modify the attribute according to the normal idea (document. Frames ["faramename"]. SRC), the system prompts that you do not have the permission,
However, by setting the src attribute of document. getelementbyid ["frameid"] or setting the opening target in the pop-up window, we can still dynamically modify the src attribute of the framework,
Example:
<IFRAME id = "Page-window" width = "100%" Height = 100% name = "Main" frameborder = "0" scrolling = "Auto" style = "border: 0px none; background-color: # bbbbbb; "> </iframe>
Modify the SRC of IFRAME:
Document. getelementbyid ("Page-window"). src = "common/pageframe/index.htm? Url = @ Bohua; "+ obj. loadurl +" @ Bohua; "+" _ d = "+ new date (). gettime ();