Home >Web Front-end >HTML Tutorial >Three implementation solutions for how to refresh iframe_HTML/Xhtml_Web page production

Three implementation solutions for how to refresh iframe_HTML/Xhtml_Web page production

WBOY
WBOYOriginal
2016-05-16 16:40:231519browse

Copy code
The code is as follows:



Option 1:
Use the name attribute of iframe to locate

Copy code
The code is as follows:

or


Option 2:
Use the id attribute of the iframe to locate

Copy code
The code is as follows:


Ultimate solution:
When the src of the iframe is another website address (cross-domain operation)

Copy code
The code is as follows:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn