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

请输入您要查询的考试资料:

 

标题 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/21 11:58:23