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
Release: 2016-05-16 16:41:58
Original
1099 people have browsed it

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();
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template