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
Post a Comment