simple javascript question easy one

admin

Administrator
Staff member
I am setting a value in my page like this

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

I want to add this to the url and pass it to another page by using something like this. that way when I get there the new page will know the page title of the page I came from:

onclick="window.open('/reports/help/drew.aspx?pagetitle')

When I get to the next page I am going to be retreiving that value and redirecting based on the value.

How do I get the value when I go to the next page and does my on click event look ok? Please help so I can enjoy the holiday.
 
Back
Top