I have two html pages example1.html and example2.html ,how can i pass a javascript variable username from example1.html to example2.html in querystring.
<script type="text/javascript" >
$(document).ready(function() {
$('#SubmitForm').submit(function() {
var username = ($("#username").val());
...........
..........
..............
.........
</script>
<body>
<div id="example2"><a href="http://localhost:1894/blockseek8-9-2010/example2.html?Var1=username" class="MainNav"></a></div>
</body>