MARKDOWN 8
Onclick JavaScript Event By jorgenio on 21st August 2026 03:33:13 AM

<!DOCTYPE html>

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":



Pasteboard is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.