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

ios - iPhone/iPad different view orientations in different views , and apple approval process -

monitor web browser programmatically in Android? -

c# - Using multiple datasets in RDLC -