javascript function to catch return value
<p>I have a funtion like this</p>

<pre><code>&lt;script type="text/javascript"&gt;
function result()
{
   return "string";
}
&lt;/script&gt;
</code></pre>

<p>I need to get this string value in to var</p>

<p>var gotresult= ???? how to get here that result value</p>
