How to make icon dropdown menu clickable in javascript(without jquery)

How can I make apps menu clickable just in javascript without any library. The menu to show and hide like google apps. Help!

You would need to use a click event which is present in the dom

E.g. ‘thingtoclick’.addEventListener(‘click’, function dosomething() {


You would need to know about DOM events…