To me it seems like this would be easy to Google for, but I'm not finding anything. I've searched:
- jquery click alert
- jquery submit alert
- jquery click popup
- jquery submit popup
- jQuery click modal dialog
- jQuery submit modal dialog
- jQuery click confirmation
- jQuery submit confirmation
And so on. I fully expect for this to be closed as a duplicate, but I'm listing my searches out so that it can help the next person: maybe it will lead to the answer I couldn't find on my own and save them some time.
That aside, here is the context. I am writing a greasemonkey/tapermonkey userscript that clicks on a button and that button has an event on it that brings up a confirm()
. How do I click on the "OK" or "Cancel" button of that confirm popup?