您的位置:首页 > 其它

Form提交表单页面刷新不跳转

2014-02-20 15:27 585 查看
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”,单击“提交”



页面提交刷新,不跳转
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: