======Javascript HTML DOM onclick Event======
* description : Javascript HTML DOM onclick Event
* author : 오션
* email : shlim@repia.com
* lastupdate : 2021-07-01
\\
=====The source of the article====
[[https://www.w3schools.com/jsref/event_onclick.asp|Javascript HTML DOM onclick Event]]\\
The onclick Event
The onclick event is used to trigger a function when an elementis clicked on.
Click the button to trigger a functionthat will output "Hello World" in a p element with id="demo".
=====Definition and Usage=====
온클릭 이벤트 (onclick event)는 사용자가 한 요소 위에서 클릭할 때 발생합니다.
=====Syntax=====
HTML에서:\\
This example demonstrates how to assign an "onclick" event to an p elements.
Click me.
\\
JavaScript에서\\
This example uses the HTML DOM to assign an "onclick" event to a p element.