javascript - window.confirm take the cancel button out -


how take cancel button window.confirm?? there way taking out , ok button show up?

if don't want cancel button, might use alert():

alert('this operation not possible'); 

in beautiful ascii art looks this:

+-----------------------------------+ |                                   | |  operation not possible   | |                                   | |            +--------+             | |            |   ok   |             | |            +--------+             | +-----------------------------------+ 

when either ok clicked or dialog dismissed, next statement in code executed.

if next statement should conditional, you'd have stick confirm() unfortunately.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -