I'm looking to reproduce the div popup behavior like vBulletin's search
link:
http://www.vbulletin.com/forum/
I've looked at many examples, but most are complicated and/or convoluted
menu systems.
I simply want to enable a small div window containing a form with a text
input field and submit button. If the user clicks outside of the div window,
it closes.
I have already created the div containing the form. The div's default style
definition contains 'display:none' to initially hide it.
I'm now looking for a JavaScript function to enable the aforementioned
functionality.
Can someone recommend an existing function or at least point me to an
example? Thanks!