我需要這個函數失敗並且不做確認,或者如果子函數返回false,則提交表單並保留在頁面上。Javascript函數返回
function doDelete()
{
if (THIS FAILS!()-STAY ON PAGE!)
// do something here
if (confirm("Are you sure you want to update and then delete this hot part?"))
{
return true;
}
else
{
return false;
}
}
該函數如何被調用? – 2011-12-30 14:39:49
oncliick提交表格 – 2011-12-30 14:48:36