Click to See Complete Forum and Search --> : simple JavaScript URL Question


dotnetanimal
12-23-2002, 02:29 PM
<script type="text/javascript">
var pagetitle = document.title;
document.write(pagetitle);
sURL = ('http://localhost/reports/help/drew.aspx?pagetitle= + pagetitle')
</script>

I am trying to pass the page title to another page via url and I think my string may be off a little.

I pass the variable sURL to the other page but don't get the value just the string name. Can anyone out there give me a lead?

gil davis
12-23-2002, 03:48 PM
Originally posted by dotnetanimal
sURL = ('http://localhost/reports/help/drew.aspx?pagetitle= + pagetitle')
...
I think my string may be off a little.
sURL = 'http://localhost/reports/help/drew.aspx?pagetitle=' + pagetitle;

BTW, you should have stuck with your original post for continuity.