I need to bookmark a JavaScript function that, in certain conditions, should click a button on a webpage.
Right now, I have a bookmark saying "Hello..."
javascript:(function (){ alert('Hello ...'); })();
Instead of "hello..." I would like to have an HTML form with with 3 checkboxes and if all these 3 checkboxes are ticked, to automatically click a button on the webpage.
I'm not sure how I can include these functions into an alert box.