<form name="form1" action="Product/Product-list" method="post">
<input type="button" value="删除" οnclick="del()"/>
<input type="button" value="添加" οnclick="add()"/>
/*<script language="javascript" type="text/javascript">
function checkAll(){
var checkall=document.form1.ids;
for(i=0;i<checkall.length;i++){
var element=checkall[i];
element.checked=!element.checked;
}
}*/复选框的全选
function del() {
document.form1.action='Product/Product-del';
document.form1.submit();
}
function add(){
document.form1.action='Product/Product-toAdd';
document.form1.submit();
}
</script>
少见多怪:
<input type="submit" value="退出系统" οnclick="window.close()"/>
<input type="button" value="返回上一页" οnclick="window.history.go(-1)"/>
<input name="" value="" readonly/>只读文本框
<img src="img\login4.gif" οnclick="win('register.sjp')">//图片做按钮,跳转新页面
function win(url){
window.location.href=url;
}
<img src="img\login4.gif" οnclick="window.open('xx.sjp')">
<img src="img\login4.gif" οnclick="window.location.href='xx.sjp'">
//退出系统 跳转到登陆页面
if(self!=top){
parent.location.href="login.jsp";
}
<input type="button" value="删除" οnclick="del()"/>
<input type="button" value="添加" οnclick="add()"/>
/*<script language="javascript" type="text/javascript">
function checkAll(){
var checkall=document.form1.ids;
for(i=0;i<checkall.length;i++){
var element=checkall[i];
element.checked=!element.checked;
}
}*/复选框的全选
function del() {
document.form1.action='Product/Product-del';
document.form1.submit();
}
function add(){
document.form1.action='Product/Product-toAdd';
document.form1.submit();
}
</script>
少见多怪:
<input type="submit" value="退出系统" οnclick="window.close()"/>
<input type="button" value="返回上一页" οnclick="window.history.go(-1)"/>
<input name="" value="" readonly/>只读文本框
<img src="img\login4.gif" οnclick="win('register.sjp')">//图片做按钮,跳转新页面
function win(url){
window.location.href=url;
}
<img src="img\login4.gif" οnclick="window.open('xx.sjp')">
<img src="img\login4.gif" οnclick="window.location.href='xx.sjp'">
//退出系统 跳转到登陆页面
if(self!=top){
parent.location.href="login.jsp";
}