Actualités

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.
In this example, when the user clicks over the Hello button then the onClick() Event will occur and would trigger the sayHello() function. Conclusion:- I hope with the help of the above example anyone ...