<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?



Reply With Quote



Bookmarks