window.onclick = function (event) { if (event.target != document.getElementById("container")) { this.showdropdown = false; } };