add EventListener basic Javascript

add EventListener

< span id=”elem”>Hello!
< script > elem.addEventListener(‘click’,function(){
alert(‘hello’);
}); </ script >

1 thought on “add EventListener basic Javascript

Comments are closed.