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
WBOYOriginal
2016-05-16 16:38:281677browse

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.
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