Home >Web Front-end >JS Tutorial >Methods to read and manipulate content in iframe from parent page_javascript skills
Basic operation method:
document.frames("frame_id").document.action;
where, frame_id is the id of the iframe that needs to be operated on the parent page, and action is the relevant operation in the iframe.
From this method, it can be seen that document.frames("frame_id") is used to obtain the id of the iframe from the parent page, and the subsequent document.action is the same as the general script operation on page elements. The specific example is To illustrate, the parent page refers to the iframe part as follows:
testname< ;/th> | |
---|---|
description | |