Hi guys, I've tried pure CSS show/hide event, but it isn't cool and isn't lived up to modern web trend. So I get back to JavaScript and I've got struck on how to mix these two events together. Here's the code I've tried so far: <!DOCTYPE html> <html> <head> <style> #showme { display: none; } </style> </head> <body> <div id=button>Button</div> <div id=showme> I'm revealed! </div> <script> var d = document, w = window , b = d.getElementById('button') , a = d.getElementById('showme') ; b.addEventListener('click', function() { if (a.style.display !== 'block') a.style.display = 'block'; else a.style.display = 'none'; }); w.addEventListener('mouseup', function(e) { a.style.display = 'none'; }); </script> </body> </html> Code (markup): Any suggestion is appreciated. Thank you,