html - Javascript Confirm popup Yes, No button instead of OK and Cancel -
Confirm JavaScript Popup, I do not want to show any buttons instead of OK, OK.
I used this vbscript code:
& lt; Script language = "javascript" & gt; Function window.confirm (str) {execcript ('n = msgbox ("' + str + '", "4132"),' vbscript '); Return (n = 6); } & Lt; / Script & gt; It works only in IE, in FF and Chrome, it does not work.
Is there any work to achieve this in JavaScript?
I also want to change the title of the popup like 'windows internet explorer', I want to show my own application name here.
Unfortunately, there is no cross-browser support to open confirmation confirmation that does not cancel default / correct pair Does. The solutions provided by you use VBScript, which is only available in IE.
I would recommend to use a JavaScript library that can create a DOM-based dialog instead. Try Jquery UI:
Comments
Post a Comment