Home  >  Article  >  Web Front-end  >  JS operates dom in iframe (explanation with examples)_javascript skills

JS operates dom in iframe (explanation with examples)_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:01:511201browse

You can understand by directly assigning the following code and testing:

1.html:

Copy code The code is as follows:





Untitled Document


======================Note: Testing starts here==== =====================

is used to test that the subform iframeA accesses the parent form An element


======================iframe dividing line====== ===================