The first method: It is very easy to use. Only after confirmation can the download address page be opened. The principle is also relatively clear. Mainly used to confirm deletion of a single message
<SCRIPT LANGUAGE=javascript> function p_del() { var msg = "您真的确定要删除吗?\n\n请确认!"; if (confirm(msg)==true){ return true; }else{ return false; } } </SCRIPT> 调用方法: <a href="del.jsp?id=<%=id%>" onclick="javascript:return p_del()">删 除</a>
The second method: the principle is the same as above.
JavaScript delete confirmation box
Delete
The third type: mainly used Confirmation prompt for batch deletion
The following is compiled by other netizens, they are similar. Generally, a confirmation button pops up to determine whether to continue to the deletion page below.
First type:
Delete
Second type:
//Call
"
onclick="javascript:del_sure()">Delete
Third type:
Delete