Variable SN in the window alert must be 'John' but is displayed as 'undefined'.
Thanks for solution tips.
<%
session("Mem")="John"
%>
<script>
<%
sesname=session("Mem")
%>
var SN = <%=sesname%>;
function myFunction()
{
alert("Dear "+SN+",\n...");
}
</script>
<script>myFunction();</script>
Thanks for solution tips.
<%
session("Mem")="John"
%>
<script>
<%
sesname=session("Mem")
%>
var SN = <%=sesname%>;
function myFunction()
{
alert("Dear "+SN+",\n...");
}
</script>
<script>myFunction();</script>