1. jquery stay iframe The page gets the parent element code as follows :

$("#objid", parent.document)

2. jquery On parent page obtain iframe Subpage elements

The code is as follows :

$("#objid",document.frames('iframename').document)

3.js stay iframe The page gets the parent element code as follows :

indow.parent.document.getElementByIdx_x(" Elements id");

4.js Get... On the parent page iframe The subpage element code is as follows :

window.frames["iframe_ID"].document.getElementByIdx_x(" Elements id");

5. Subclass iframe Call the parent function inside :

window.parent.func();

jquery Read iframe More articles on the handling of child pages and parent pages

  1. jquery operation iframe Methods : How the parent and child pages interact with each other

    What are you doing today jquery operation iframe Medium element : First of all iframe Subpages in b.html To the outside parent page a.html Page transfer value , then a.html The value of the page computer is placed in b.html On the page , Here we use the interaction between the child page and the parent page ...

  2. Use iframe The parent page calls the child page and the child page calls the elements and methods of the parent page

    In actual project development ,iframe Frames are often used , Mainly used to introduce other pages . Here's how to use iframe After introducing other pages , How the parent page calls the methods and elements of the child page and how the child page calls the methods and elements of the parent page . 1. Parent page ...

  3. js stay iframe The child page gets the parent page element , Or on the parent page obtain iframe Several ways of subpage elements

    use JS or jquery Visit the iframe, compatible IE/FF Be careful : A page within a frame cannot cross domain ! Suppose there are two pages , In the same domain . index.html The file contains a iframe: XML/HTML Code ...

  4. The child window accesses the parent page iframe Medium iframe,top Open a child window to access... In the parent page iframe Medium iframe

    The child window accesses the parent page iframe Medium iframe Subwindows access... On the top most page iframe Medium iframe top Open a child window to access... In the parent page iframe Medium iframe top Open a sub window to access the top page of i ...

  5. iframe The child page calls the parent page javascript Function method

    1.iframe Subpage call Parent page js function The child page calls the parent page function only by writing window.parent That's all right. . For example, call a() function , The just : window.parent.a(); 2.iframe Parent page ...

  6. Operate the parent page element and on the child page iframe explain

    Realization function : Operate the parent page element on the child page . In the actual coding process , You must have this demand : On the parent page there is a <iframe scrolling='auto'></iframe> Inline framework , And we ...

  7. iframe Get parent page iframe Subpage elements And iframe The child page gets the parent page element

    One . stay iframe The page gets the parent element code as follows :$('#objld', parent.document); Two . Get... On the parent page iframe The element code of the subpage is as follows :$("#objid", ...

  8. Subpage iframe Cross domain execution of parent page defined JS Method

    Problem demand : Parent page and child page iframe Nesting across domains , The child page should trigger the js Method . Data transfer of parent-child page . Some documents will be used in the following : Parent page : parent.html The child embedded in the parent page iframe page :child ...

  9. jQuery The child page gets the parent page element

    $("input[type='checkbox']:checked",window.opener.document);// Apply to the parent page element of the open window $("input ...

Random recommendation

  1. SQL Server 2016 JSON Examples of native support

    background Microsoft SQL Server It's becoming more and more friendly for developers of data platforms . For example, it already has native support XML For many years , In this trend , Now it can also be in SQLServer2016 Use built-in JSON. Especially for some ...

  2. Blend Cannot be opened wpf project , Prompt for unrecognized tool version “12.0”

          Open the project file in Notepad and change it to “14.0” that will do        

  3. Web Background technology trends

    Use today Google Trend Compare the server-side programming language technology ASP/ASP.NET Core, PHP, Node.Js Change trend of , Find the characteristics . ASP.NET It has been declining again in recent years . ASP and ...

  4. html Introducing external jswenjian

    First of all, let's see if the introduction is correct <script type='text/javascript' src='xx.js'></script> Secondly, it depends on whether the path of introduction is correct If the introduction of a third ...

  5. hdu 4293 dp Find the maximum weight non coincidence interval

    Topic link :http://acm.hdu.edu.cn/showproblem.php?pid=4293 #include<cstdio> #include<cstring> # ...

  6. ant_0105

    stay projectA In the implementation of projectB Component files for .projectA The content of the component file is as follows <?xml version="1.0"?> <!-- stay projectA in ...

  7. Use javassist Dynamic reloading at run time java Class and other alternatives

    In many cases , We need to check the system in production , But you can't restart the app ,java Apply stored procedures that are different from databases , So far, at least , It can't support compilation and replacement at any time , In this way , Database ratio java The dynamism of the system should be ...

  8. Learn together Java( Four ) File、Try 、 serialize 、MySQL、Socket

    One .Java flow (Stream). file (File) and IO Java.io The package contains almost all the operation inputs . Output the required class . All of these stream classes represent input sources and output targets . Java.io Streams in packages support many formats , such as : The base ...

  9. AWS EC2 Server's HTTPS Load balancer configuration process

    AWS EC2 Server configuration load balancer steps :   1. General load balancer   At least two EC2 example , Here we use Centos6.7 System as an example After booting, install apache Of httpd Server default 80 port , Or use other services ...

  10. Go Language foundation ( One )

    Go Language foundation ( One ) National Day experience famous Go Language ,IDE Use IEDA+Go plug-in unit , While typing the code, you can experience , Feeling Go The language is so cool One .Hello World and Java similar ,go The file needs a package contain , Code ...