| |

VerySource

 Forgot password?
 Register
Search
View: 691|Reply: 1

How to display pages in one iframe in another iframe?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-29 20:00:01
| Show all posts |Read mode
There are two iframes in the page, and one of them already has a page. How can I use a client-side script to display the pages in this iframe in another iframe?
Note: This page cannot be reloaded, so it cannot be achieved by changing the src or location of the iframe.
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-9 12:30:01
| Show all posts
If you want to display the contents of frame1 directly on frame2
Can use
frame2.document.getElementsByTagName ('html') [0] .innerHTML = frame1.document.getElementsByTagName ('html') [0] .innerHTML;
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list