SRC attributes of frame and IFRAME:

Source: Internet
Author: User

 

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 ();

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.