This article records related records about the iframe element of HTML Definition: An IFRAME element creates an inline frame (inline frame) that contains another document.Common basic IFRAME settings (Detailed settings Property Reference API:http://www.w3school.com.cn/tags/tag_iframe.asp):"alarmstatetabiframe" scrolling="no" src= ""Related Operations on
/*** ** @author: Cheng* @Email: bohemia1985@163.com*/
Why do I need an IFRAME?Because the IFRAME is equivalent to a separate form, you can dynamically change the steady content in the IFRAME,And there is no need to change other elements. It is because of this characteristic that the IFRAME shows in some wayThe superior
Today, I just need to judge that the iframe loading is complete. I just found out that the method for this article is perfect.
Var iframe = document. createElement ("iframe ");
Iframe. src = "http://www.bkjia.com ";
If (! /* @ Cc_on! @ */0) {// if not IE
Iframe. onload = fun
In this article, we will not use ajax to upload a non-refreshing file, but use iframe to simulate ajax to implement a non-refreshing File Upload. If you need it, you can refer to the example below.
Let's take a look.
Let's download the full instance source code of the plug-in.
Asp http://down.bKjia. c0m/down/code/asp/2012/0508/24173.html
Http://down.bKjia. c0m/down/code/asp/2012/0508/24172.html
[Upload]
The most important method in the program is upl
The call between the IFRAME parent page and the child pageThe professional terms are explained as follows :iframe: An IFRAME element is a document in a document.window Object : The browser creates a corresponding Window object when it opens an HTML document. However, if a document defines one or more frames (that is, contains one or more frame or
The adaptive height of the IFRAME, that is, based on the interface aesthetic and interactive considerations, hiding the border and scrollbar iframe, so that people do not see it is an IFRAME. If the IFRAME always calls the same fixed height page, we can simply write dead iframe
Let's take a look at the Help file for contents () in jquery
Contents ()OverviewFinds all child nodes within a matching element, including text nodes. If the element is an IFRAME, find the contents of the document
ExampleDescribe:Find all text nodes and bold
Html
Copy Code code as follows:
You doing?
Jquery
Copy Code code as follows:
$ ("P"). Contents (). Not ("[nodetype=1]"). Wrap ("Doing?
Describe:Add som
An IFRAME without a border because it can be combined seamlessly with the Web page to update the page's part of the data without refreshing the page, but the size of the IFRAME is not like a layer can be "flexible", so bring the use of trouble, to set the height of the iframe when more is not good, Less is not, now, let me tell you an
1, frame can not be separated from frameset alone, IFRAME May;2, frame can not be placed in the body, as shown below:The following does not display properly:3, nested in the frameset of the IFRAME must be placed in the body, the following can be displayed as normal:The following does not display properly:4, not nested in the frameset of the IFRAME can be used fre
A summary of various methods and methods for adaptive height of IFRAME
For the self-adaptive height of the code there are many, the efficiency of what the consideration of good code is rare, but the idea is similar
An IFRAME without a border because it can be combined seamlessly with the Web page to update the page's part of the data without refreshing the page, but the size of the
Today, we use IFRAME-related operations here, but there are not many operations at ordinary times. Today, I found some information on the Internet and read it: collect the following information: original article address =================================================== ====================== the method for calling the child page on the parent page: document. getelementbyid ('iframedemo '). contentWindow. demofunction ();
Iframedemo is the ID of
There are a lot of self-adaptive code, and it is rare to consider the efficiency or other considerations, however, the idea is similar. If an IFRAME without borders can be seamlessly integrated with a webpage, it is possible to update part of the page data without refreshing a new page, however, the size of the IFRAME is not as flexible as that of the layer, which makes it difficult to use it. It is not goo
I believe that most of my friends are victims of IFRAME Trojans, and some of my friends have been injected into IFRAME. Moreover, it is easy to inject IFRAME into ARP attacks, and only the LAN is always under threat. It is close to the New Year's standard. To prevent more friends from being attacked, I will explain it in detail.
Linger once posted a post on the
An iframe without borders can be used to update part of the page data without refreshing a new page because it can be seamlessly integrated with the webpage. However, the size of the IFRAME is not as scalable as the layer does ", this makes it difficult to use IFRAME. It is not good to set the IFRAME height much. If it
In general, it is similar to checking whether an iframe is loaded.
The Code is as follows:
Var iframe = document. createElement ("iframe ");Iframe. src = "http://www.jb51.net ";If (! /* @ Cc_on! @ */0) {// if not IEIframe. onload = function (){Alert ("Local iframe is now l
In general, we determine whether the iframe is loaded and whether the JavaScript file is loaded. The method used is similar:
The Code is as follows:
Var iframe = document. createElement ("iframe ");Iframe. src = "http://www.jb51.net ";If (! /* @ Cc_on! @ */0) {// if not IEIframe. onload = function (){Alert ("Local
Comparison between IFRAME and usercontrol:
1. When loading a small amount of data, there is no obvious difference between the two, both synchronous loading and asynchronous loading2. loading the content of IFRAME does not affect the operability of the home page, while loading the content of usercontrol does not require Ajax before you can operate the home page.3. IFRAME
PHP + iFrame implement asynchronous file upload without refreshing the page ,. PHP + iFrame implements asynchronous file upload without page refresh. this example describes PHP + iFrame asynchronous file upload without page refresh, which is a very useful common technique. Share with big PHP + iFrame implement asynchro
Left IFrame put tree directory, the right side of the IFRAME on the index page. Drag the mouse to control the width and height of 2 iframe simultaneously.
Expect someone to improve.
How to: The mouse point to 2 of the middle of the IFRAME, can be horizontal drag, longitudinal drag (control height)
Disadvantage: CSDN
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.