confirm box with Yes and No options

how to make a confirm box with Yes and No buttons instead of Ok and Cancel in javascript.
Who is Participating?
ZvonkoConnect With a Mentor Systems architectCommented:
For IE only>

<script language="VBScript">
Function makeMsgBox(title,message,icon,buttons,defButton,mode)
   butVal = icon + buttons + defButton + mode
   makeMsgBox = MsgBox(message,butVal,title)
End Function
// -->
<script language="Javascript">
function confirmDelete(){
  var retVal = makeMsgBox("Confirmation","Delete Record?",48,4,256,4096);
  // which button was pressed?
  if(retVal == 6){
    alert('Delete prcessing');
    return true
  } else {
    alert('Delete aborted');
    return false
<INPUT TYPE=button Value="Delte" onClick="alert(confirmDelete())">

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.