News

HTML can call a JavaScript function using the onclick attribute within an HTML element, such as a button. This attribute specifies a JavaScript function to be executed when the element is clicked.