<script type="text/javascript">
</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
如果确认删除,则把form提交给一个action做处理.其中,frmAction为一个form的名字.
function del_submit(){
if (confirm('确定删除该分类吗?')==false) return;
document.frmAction.action="/cms/catalogAction.do?act=delete&catalogId=381&catalogType=1";
document.frmAction.submit();
}
<input class="button" type=button value=删除 name=Submit onClick="del_submit();">