I've got an auto-suggestion menu. A drop down menu appears when the user begins to type into a search form. I want the menu to disappear when the user clicks anywhere outside of the menu.
Code:
function disappear()
{
var menu = document.getElementById("suggestions");
menu.style.display = 'none';
}
I've got something like that set up so far. I just don't know how to use it for when the user clicks on the page.