html button onclick
In HTML, we can use the onclick attribute and assign a JavaScript function to it. It can also be linked to a form elsewhere in the document with the form attribute. Note that EventType.MouseDown and EventType.MouseUp are called prior to onClick. Using onclick you can open any link or page. Read Also: How to Open a Link On Button Click JavaScript. Radio Button Onclick vs. Onchange Event. We will connect the url of the new page to the onclick event of the button. '); } . The HTML