How do the methods in 2 iframes A and B A control the DOM elements in B?

Updated on technology 2024-04-15
12 answers
  1. Anonymous users2024-02-07

    Actually, an iframe is also a page, what you mean is how to control the control in another iframe in the method of one page, and give you a method, one of my methods in an iframe, in this method to control the control in another iframe:

    protected void treeview1_selectednodechanged(object sender, eventargs e)

    if ( == "Personal Account Certificate Application")

    string js = "";

    string js = "";

    string js = "";

    myjs", js);

    else if ( == "Batch account certificate application")else if ( == "Sign in")

    string js = "";

    ",js);

    radiobuttonlist rbl = new radiobuttonlist();

  2. Anonymous users2024-02-06

    I'll give you some ideas.

    You can do this with a JS script. You create a separate js file, and the scripts are written in it.

    It's like a medium. You can use js to find the iframe in b and then find the element you control. Level by level.

    You can write a function and write all the operations in it. It's done, import js in a and get rid of this function.

    I don't know if you can understand that. I don't understand, I'm sending you a case.

  3. Anonymous users2024-02-05

    head.

    Contents of the body:

  4. Anonymous users2024-02-04

    You can put this iframe into a div. Is it not long before calling the js function to hide this div when it is executed?

  5. Anonymous users2024-02-03

    You can call the document of the iframe object directly, and the methods are the same as in the document. Note, however, that if the iframe is cross-referenced, it will be restricted from accessing its contents. That is, you can't cite the page, tamper with the content in it, you can only change your own **.

  6. Anonymous users2024-02-02

    Hello: The solution can be like this, write the method of manipulating the dom element, and then on other pages if it is an iframe, you can use name"].The name of the function.

    It can be called like this. You can also use an ajax page to pass values. If you identify any action on the acceptance page, you can execute the action you wrote for the operation DOM.

  7. Anonymous users2024-02-01

    That's right! Running under IE is correct. Not necessarily in Chrome.

    The local file was tested in chrome and kept saying cross-domain operation of the file, blocked (press f12 to go to script and you can see the error). It is estimated that uploading to the server is OK.

  8. Anonymous users2024-01-31

    I've got you tuned:

    p page**:

    A frame page of the page.

    The b frame page of the page.

    Page A**:

    Here is the content on page A.

    Page B**:

    Here is the content on page b.

  9. Anonymous users2024-01-30

    For example: by refreshing the b page, add in the add.

    Refresh page b.

  10. Anonymous users2024-01-29

    For example, there is a web page where the frame is placed.

    For the frame displayframe that just starts to display the page, then in the Link, use onclick= on the link or button for the menu item"change()",

  11. Anonymous users2024-01-28

    Totally works.

    It can be used regardless of whether it is a full-screen frame or a partial iframe.

    But notice the usage of target above where clframe is the name of the target iframe.

  12. Anonymous users2024-01-27

    You try it out via the alert( call.

Related questions
9 answers2024-04-15

A page can only submit 20 files, this is because the server has a limit, if the server is php, php and above, there is a hidden default configuration, which is not listed in it, is the max file uploads setting. The default value of max file uploads is 20, which means that you can upload up to 20 files at a time. >>>More

13 answers2024-04-15

The most accurate possible traffic data can only be obtained if the statistics are added correctly, and the following points need to be taken into account during the addition process: >>>More

11 answers2024-04-15

Is it to jump somewhere on this page to add an anchor.

17 answers2024-04-15

%if request("username")="" then%>elseset rec="")

sql="select * from user where username = '"& request("username") &"'" >>>More

7 answers2024-04-15

Admission to the G-Challenge Course.

Remember there's a place where penguins are guarding the door, and there's a penguin at the door, and there's a penguin at the door. >>>More