I,
Copy codeThe Code is as follows:
<Script>
Function del (){
If (confirm ("are you sure you want to delete ")){
Alert ("yes ");
}
Else {
Alert ("no ")
Return;
}
}
</Script>
<Html>
<Input type = "button" value = "del" onclick = "del ();">
</Html>
II,
Copy codeThe Code is as follows:
<A href = '/console/oneYear. action? Id = <s: property value = "id"/> '> edit </a> | <a href = 'javascript: delMonthMessage ("<s: property value = "twoid"/> ") 'onclick =" return confirm ('Are you sure you want to delete this record? ') "> Delete </a>
III,
Copy codeThe Code is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<Html xmlns = "http://www.w3.org/1999/xhtml">
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"/>
<Title> js confirmation deletion dialog box-Lazy Image Library </title>
</Head>
<Body>
<P>
<Script language = "javascript">
Function delcfm (){
If (! Confirm ("are you sure you want to delete? ")){
Window. event. returnValue = false;
}
}
</Script>
<A href = "http://www.lanrentuku.com/" onClick = "delcfm ()"> Delete </a> </p>
<P> Code Description: After you click the deleted hyperlink, The delcfm () function is executed. In the dialog box, if you click "OK", the function returns true, go to the link page in the <a> tab to delete the page. If you click "cancel", the function returns false, <a> the tag is not displayed on the Deletion page. </P>
<P> for more code, visit: <a href = "http://www.lanrentuku.com" target = "_ blank"> lazy gallery </a> </p>
</Body>
</Html>