Home  >  Article  >  Web Front-end  >  Summary of javaScript delete confirmation implementation method

Summary of javaScript delete confirmation implementation method

高洛峰
高洛峰Original
2016-12-17 13:45:591295browse

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; 
}

Second method: The principle is the same as above.
JavaScript deletion confirmation box

97ea73d8091a5b7765a40132aa5c0eb3Delete5db79b134e9f6b82c0b36e0489ee08ed

No. Three types: Confirmation prompts mainly used for batch deletion
9e289bea45b53bcd1eea7e3c6b2e3cc2

8ac8648b555b1fefd31379005a2fc2a5';return true;}return false;}" value="Delete column" />

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.
The first type:
81cfcf5279c7e2bec0acff64ff2a8198Delete5db79b134e9f6b82c0b36e0489ee08ed
The second type:
1a24b17f85e15c83fc29b7760e40bfcb
1de9247b048f723fa444fb7d2f0dd59f
2cacc6d41bbb37262a98f745aa00fbf0
//Call
e3ea6de1e8a5f0319590df303c7b0bc7" onclick="javascript:del_sure()">Delete5db79b134e9f6b82c0b36e0489ee08ed
The third method:
1a24b17f85e15c83fc29b7760e40bfcb
function confirmDel(str){
return confirm(str);
}
2cacc6d41bbb37262a98f745aa00fbf0

6c893e0dbfd0ca0f1aafa338e58eb052Delete5db79b134e9f6b82c0b36e0489ee08ed



For more javaScript deletion confirmation implementation methods summary and related articles, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn