codice:
<% variabile1="Ciao a tutti" %>

<script language="JavaScript">
variabile2 = <%= variabile1 %>;
document.write(variabile2)
</script>