Not directly ... but a hidden field is all the magic you need.
It's not just that javascript and asp are different languages; they run on different machines. So you can't just call a variable from one in the other. In .NET you'd serialize a class with the session variables to xml and do all kinds of fancy things. It's the same technique, only less complicated.
hiddenField1.Value = Session("URL");
and then
x = document.getElementById("hiddenField1").innerHtml
Actually I don't know exactly how it'd look on the javascript side ... something basically like that. I really need to learn a lot more js.
<script type="text/javascript">
var test = <% response.write SESSION VARIABLE %>;
that way when the page gets "compiled" on the server it will put the proper asp variable into the JS script for when that is run on the client computer
« Reply to Calling ASP session Variables in JavaScript