Usually use confirm in js to implement the confirmation cancellation in the pop-up dialog box
<Script language = "Javascript">
Function preview ()
{
Var bln = confirm ("do I need to print the signature process? ")
If (bln = true)
{}
Else
{}
}
</Script>
Sometimes you need to replace "OK" and "cancel" with "yes" and "no" and "cancel"
<Script language = "vbscript">
Function show (str)
Show = msgbox (str, 3, "prompt ")
// 6
// No 7
// Cancel 2
End function
</SCRIPT>
<Script language = "Javascript">
Function preview ()
{Var bln;
Bln = show ("do you want to print the signing process after the page? ")
Switch (bln)
{Case 6:
SignTR. className = '';
Break;
Case 7:
SignTR. className = 'noprint ';
Break;
Case 2:
Return ;}
}
</Script>
If language = vbscript is used, an error occurs in the lower-left corner of the page when the mouse is clicked over the menu. If it is changed to javascript, it will be OK.
<Script language = "Javascript">
Function show (str)
{
ExecScript ("n = msgbox ('" + str + "', 3, '')", "vbscript ");
Return (n );
}
</Script>
Only "yes" and "no". For other cases, refer to the msgbox of vbscript.
<Script language = javascript>
Function window. confirm (str)
{
ExecScript ("n = (msgbox ('" + str + "', vbYesNo, 'custom confirm') = vbYes)", "vbscript ");
Return (n );
}
Alert (confirm ("reloaded confirm pop-up box "));
</Script>