In my JavaScript code, I am defining a variable as follows:
<script>
var foo = 5;
</script>
<%
For i = foo To 10
'do something...
Next
%>
Unfortunately, I am currently facing an issue where I cannot access the value of foo
. Is there a way to properly access this value without using a form? Keep in mind that I am working with classic ASP and not ASP.NET.