| |

VerySource

 Forgot password?
 Register
Search
View: 975|Reply: 6

About the value of the iframe frame?

[Copy link]

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-17 15:30:02
| Show all posts |Read mode
If it is in a form, there is <iframe src = "html.html" height = 100 width = "100"> and it is set as editable. After submitting the form, how can I get some iframe content ?? Thank you!
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-6-25 11:15:01
| Show all posts
Give <iframe name="iframe1"> a name, and get the content by setting the name.
document.iframe1.
Reply

Use magic Report

2

Threads

6

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

 Author| Post time: 2020-7-6 17:30:01
| Show all posts
What is it like? How do I get the value after taking a name, is it similar to bean? Get Method? Please go upstairs in detail?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-7-18 13:15:02
| Show all posts
You think about it this way, the page referenced by the iframe is a subform of the current page. Through this child form to get the document, to manipulate the elements or data inside, I have done in the iframe page to call the method of the parent form or get an element object, the principle is the same
Reply

Use magic Report

0

Threads

63

Posts

42.00

Credits

Newbie

Rank: 1

Credits
42.00

 China

Post time: 2020-7-18 19:00:02
| Show all posts
lz first learn javascript, especially the way to access html content with dom
Reply

Use magic Report

0

Threads

11

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-7-18 19:30:01
| Show all posts
The iframe cannot be the content of the form. You need javascript to read out its value and pay to the html control that can be placed in the form. According to the upstairs, learn javascript carefully and learn more from other people’s examples
Reply

Use magic Report

0

Threads

16

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-7-18 20:45:01
| Show all posts
Is the editor
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