onsubmit用法

<form action="admin.php?m=user&a=ls&srchname=$srchname&srchregdate=$srchregdate" onsubmit="return confirm('{lang user_delete_confirm}');" method="post">


<a href="__APP__/admin/delnews/id/{$vo.id}" onclick="return confirm('确认删除');" target="_self">删除</a>

//点击删除 确认 _self不跳转自刷新 很实用

你可能感兴趣的:(submit)