Home > Web Front-end > HTML Tutorial > Use iframe to submit a form without refreshing the page_HTML/Xhtml_Web page production

Use iframe to submit a form without refreshing the page_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:38:28
Original
1676 people have browsed it

So we introduce an embedding framework to solve this problem. The specific principle is: when the form submits data, the submission target is not set to the current page, but an embedded frame in the current page.
First you should insert an embedded frame under the body:

Copy the code
The code is as follows:

Then You should set the target of the form to the embed frame, like this:

Copy the code
The code is as follows:

This way we get the goal we need.
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