The file PopUpMenu.js must be placed in the same directory as your html file. Add this code to the tag of the link if you want to pop-up the menu when the link is clicked: