双提交
来源:互联网 发布:python 元类 单例 编辑:程序博客网 时间:2024/04/29 19:55
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head></head>
<script type="text/javascript">
function ck(){
alert("123");
var pwd = document.getElementById('pwd').value;
if(pwd == 0){
alert("对不起,你不是本网站用户请选择客户提交");
return false;
}
}
function checktwo(){
alert("123");
document.getElementById('pwd').value = "123";
}
</script>
<body>
<form id="form1" name="form1" method="post" action="http://www.baidu.com" onsubmit="return ck();">
<table>
<tr>
<td>用户名:</td>
<td><input type="text" name="username"><input type="hidden" name="pwd" value=""></td>
</tr>
<tr>
<td><input type="image" src="../images/purple/button_tj.jpg" width="56" height="23" onclick="checktwo();"/></td>
<td><input type="image" src="../images/purple/button_tj.jpg" width="57" height="23" border="0" /></td>
</tr>
</table>
</form >
</body>
</html>
不知道这个东西对大家有没有用.不过可以玩玩 挺有意思的
- 双提交
- 提交
- 关于vue表单提交防双/多击
- 提交按钮重复提交
- 窗口提交
- 回车提交
- iframe提交
- form提交
- 回车提交
- 重复提交
- javascript提交
- 回车提交
- 网站提交
- 提交一次
- getElementById-提交
- http 提交
- 表单提交
- 异步提交
- nohup & python
- Linux 下NVIDIA的驱动安装问题
- error: expected specifier-qualifier-list before ‘uint8_t’
- 最短路径Floyd算法分析 收藏 Floyd最短路径算法
- 类的加载、实例化、初始化的区别和执行顺序
- 双提交
- acm常用算法
- Linux内核源码分析(3)——compiler-gcc[x].h分析
- 测试文章
- 自定义函数做标识列的例子,不自动重排编号,而是自动补号
- 在Windows 7/2008/Vista里制作USB优盘启动盘
- 黄山归来确实不必看岳
- dev c++ dll 制作与调用学习笔记
- 隐藏区域/显示区域