I need to pass the title of a referring web page to a script to generate an e-mail. Document.referrer.title isn't doing it. Merely plugging document.referrer.title into the script where the reftitle variable shows below returned the string "undefined" in the subject of the e-mail. Creating a variable and defining it as document.referrer.title does the same. Short of leaving cookies, is there a simple expression that would pick up the title of a referring page? Or am I overlooking something in this script? (At least I'm getting the URL of the referrer properly, which is also important.)
Here's the latest version of the function:
this.value = list;
url = document.referrer;
reftitle = document.referrer.title;
admin=list + "@domain.tld";
topic="I would like more information about";
Thanks for your consideration.