I need Cancel Button to be removed from java script confirm/alert box
<a href="javascript: if (confirm('Message....')) { window.open('https://www.url.com'); void('') } else { void('') }; "> <strong>Link</strong></a>
I have the code above that works well. When the user clicks on link a box opens with the message and OK and cancel button. If OK is clicked a new window opens to www.url.com but I need to get rid of the cancel button in the dialogue box. I just want the option to be OK
I've tried variations of using alert as opposed to confirm but cant seem to get it.
What am I missing?
Client want to use jquery alert instead of javascript
Quote:
Originally Posted by
molendijk
You can mark it as solved. (But I don't know how to do this).
It turns out that my client wants to use jquery alert instead of javascript.
Is there anything out there that works like the onclick="alert() and window.open?