<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ":www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Form提交表单页面不跳转</title> </head> <body> <form action="" id="" method="post" target="id_iframe"> <input type="text" id="input_text" name="input_text"/> <input type="submit" id="sobmit" name="submit" value="提交" /> </form> <iframe id="id_iframe" name="id_iframe" style="display:none;"></iframe> </body> </html>
运行结果
(1)输入“451”,单击“提交”

(2)输入“45464646”,单击“提交”

页面提交刷新,不跳转
以上就是分享Form提交表单后页面刷新不跳转的图文详解的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号