I think that you will have to put your value into a hidden field. Then javascript can access the field if it is within a <form> and it has a name.
<script language = "javascript">
myvar = document.main.myvar.value;
</script>
<form name="main" .....>
<input...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.