Skip to main content

The onclick Event

The onclick event is used to trigger a function when an element is clicked on.

Click the button to trigger a function that will output "Hello World" in a p element with id="demo A".

The onclick Event

The onclick event is used to trigger a function when an element is clicked on. Click the button to trigger a function that will output "Hello World" in a q element with id="demo B".

Comments

Popular posts from this blog

Q1

Solve this problem and when you are done then click on SHOW ANSWER SHOW ANSWER