|
|
|
|
复制本帖HTML代码
|
高亮:
今天贴
X 昨天贴
X 前天贴
X |
<html>
<head>
<script language="javascript">
function check(){
if (document.form1.flag.value=="")
return false;
else
return true;
}
function func_submit(myform){
myform.flag.value="anyvalue"
if (check()){
myform.target="_self";
myform.action="detail.asp";
myform.submit();
}
}
</script>
</head>
<body>
<form name="form1" method="post" onsubmit="return check()">
<input name="name" type=text></input>
<input type="hidden" name="flag" value="">
</form>
<input type="button" name="btnsubmit" value="click me" onclick="func_submit(document.form1)">
</body>
</html> .
|
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法! |
Put your OWN COOL signature here!
|
|