I'm trying to make a dropdown menu like facebook
<p>I want to make a dropdown menu like facebook. (Where Log out, Account Settings, Privacy Settings, etc. are located.). I've tried it, but couldn't make just 1 easy step. When I click the body text I want that dropdown menu to disappear. Can you post a code for that. Can it be something like this?</p>

<pre><code>&lt;div onclick="hideshow()"&gt;&lt;a&gt;DropdownMenu&lt;/a&gt;&lt;/div&gt;
</code></pre>

<p>and I want that function that hideshow() function can anyone post it for me ? I'd really appreciate that.</p>

<p>This is because I'm noob at javascript.</p>
