A CodePen by Christofer Vilander. Dropdown menu - Dropdown menu, using JavaScript. I've just started to dig into JavaScript, so it might contain bugs or other flaws.