News

Edge, for example, offers a checkbox to prevent the page from being able to show subsequent dialogs, and Chrome lets you close the tab in spite of the alert box.
With the onclick handler in place, the button now opens a JavaScript alert box (saying “hello”). Moreover, because our event-handler definition returns false, the form will not be submitted. Of course ...