@pyroauthorDec 23.2002 — #Is there any way to get the referring documents title? Or, I thought of another way, can I can send the title along with the previous URL using something like this..
<head>
<script language=JavaScript>
function open()
{
top.location.href = "sendarticle.html?test"
}
</script>
</head>
<body>
<A HREF="javascript:open()">Send</A>
</body>
That will send test along with the URL, but how do I send the document.title?
I used the escape method so that the server won't get confused in case there are spaces in the title. On the receiving end, use "unescape()" to decode it.
@pyroauthorDec 23.2002 — #[i]Originally posted by gil davis[/i]top.location.href = "sendarticle.html?" + escape(document.title);[/QUOTE] Thanks worked like a charm.
I was trying it close to what swon posted but I forgot my + ?
@pyroauthorDec 23.2002 — #Well, I thought it was working...
It appears that using gil's method, when I go to read it on the other page, it uses the other pages title. Also, now I can't get it to work the other way anymore. ?
@pyroauthorDec 23.2002 — #Nope I didn't even have a title. It must be time for bed. I guess that's what happens after stairing at a computer sceen for 12 hours. Thanks swon.