hi,
I have a funtion like this
<script type="text/javascript">
function result()
{
return "string";
}
</script>
I need to get this string value in to var
var gotresult= ???? how to get here that result value
hi,
I have a funtion like this
<script type="text/javascript">
function result()
{
return "string";
}
</script>
I need to get this string value in to var
var gotresult= ???? how to get here that result value
Fix your HTML to use the correctish MIME type (text/javascript), spell return and function (thanks Rob) correctly then just replace your question marks with result().
Are you simply talking about var gotresult = result();? Or does that not work for some reason?