手机
当前位置:查字典教程网 >网页设计 >XHTML >Form提交表单页面刷新不跳转
Form提交表单页面刷新不跳转
摘要:1、设计源码Form提交表单页面不跳转2、运行结果(1)输入“451”,单击“提交”(2)输...

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"></iframe>

</body>

</html>

2、运行结果

(1)输入“451”,单击“提交”

1

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

2

页面提交刷新,不跳转

【Form提交表单页面刷新不跳转】相关文章:

html页面实现过两秒跳转至其他页面的方法

html中iframe控制父页面刷新实现思路及代码

提交表单后转到另一个文件

HTML实现页面自动跳转的五种方法

网页页面 自动刷新的3种代码

插入表单form上下都会空出一行的解决方法

HTML Form表单元素全面了解

iframe如何刷新的三种实现方案

网页中回车后form自动提交跳到其他页面的解决方法

iframe下页面传参数为乱码问题探讨

精品推荐
分类导航