网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 form提交表单页面刷新不跳转
范文
    1、设计源码
    代码如下:
    <!doctype html public -//w3c//dtd xhtml 1.0 transitional//en http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd>
    <html xmlns=http://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>
    2、运行结果
    (1)输入“451”,单击“提交”
    (2)输入“45464646”,单击“提交”
    页面提交刷新,不跳转
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/24 23:03:38