HTML DOM Events The onclick Event The onclick event triggers a function when an element is clicked on. Click to trigger a function that will output "Hello World": Click me My First JavaScript Click me to display Date and Time. Click on this text! Share is this real