can we access the value of a javascript function from outside the function like if i had a function
<script>
function test_tree(opt)
{
val=opt;
}</script>
can i access the val value from outside the test_tree function or is there a way to access it from php code?
i need to be able to access a value from the javascript code to php code how can i do this?