Javascript - Waiting for event before proceeding
<p>I'm trying to create ONE javascript function that can do the following:</p>

<ol>
<li>onclick, a form popup in a floating div (this part is okay)</li>
<li>the script then some how wait for data to be entered into the form before returning the value in the form.</li>
</ol>

<p>You can say I'm trying to create my own version of javascript prompt.</p>

<p>The problem is how to do action #2?</p>

<p>Any help appreciated.</p>
