Home >Web Front-end >JS Tutorial >js operation iframe is compatible with various mainstream browser sample codes_javascript skills
While working on a project, I encountered problems related to operating iframes. The business is very simple. In fact, when operating a form inside the iframe, a function of the parent form is called. So I wrote two very simple HTML pages for testing. Using popular online methods, Google Chrome always reported errors and failed.
The code of the parent page parent.html is as follows