2 Answers
New AnswerHello, George ! The easiest way to hang an onclick event is to register it directly in the html tag: <a href="#" onclick="alert( 'Example 1 worked'); return false;"> Example 1</a> https://www.sololearn.com/learn/JavaScript/2758/?ref=app
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message