just passing querystring value to the url

wxdqz

New Member
<script type="text/javascript">
var pagetitle = document.title;
//document.write(pagetitle);
</script>

I have this script to grab the title.

I then wnat to pass it along to the next page in the url and it does not need to be encoded. I tried just adding the variable to the onclick event but that did not work. <!-- m --><a class="postlink" href="http://somewhere.com/drew.aspx?pagetitle">http://somewhere.com/drew.aspx?pagetitle</a><!-- m --> is this the wrong format.

when i go to the next page I try this and no value seems to be passed.
 
Back
Top