Home >Web Front-end >HTML Tutorial >The refresh method of iframe is more convenient_HTML/Xhtml_webpage production

The refresh method of iframe is more convenient_HTML/Xhtml_webpage production

WBOY
WBOYOriginal
2016-05-16 16:41:581098browse

Refresh method of iframe

1. Refresh method can use javascript’s document.fr.location.reload()

2. You can also modify document.fr.location.href to achieve refresh. Function

For example:

Copy the code
The code is as follows:





Note: Never use both methods at the same time. If used at the same time, it will be submitted twice.

Copy code
The code is as follows:

document.fr.location.href = " your.html";
document.fr.location.reload();
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