Home > Article > Web Front-end > JS operates dom in iframe (explanation with examples)_javascript skills
You can understand by directly assigning the following code and testing:
1.html:
is used to test that the subform iframeA accesses the parent form An element
Used to test that child window B accesses an element of form A
1. Child window iframeA accesses an element of the parent window