window.confirm take the cancel button out
html, javascript
Solution
If you don't want a cancel button, you might as well just use `alert()`:
alert('This operation is not possible');
In beautiful ascii art it looks like this:
+-----------------------------------+
| |
| This operation is not possible |
| |
| +--------+ |
| | OK | |
| +--------+ |
+-----------------------------------+
When either OK is clicked or the dialog is dismissed, the next statement in your code will be executed.
If the next statement should be conditional, you'd have to stick with `confirm()` unfortunately.
Problem
How do I take the cancel Button from the window.confirm?? Is there a way to taking it out and only the OK button will show up?