Forum Moderators: open
The same form pops up for every page - so I wouldn't normally know which pages are being recommended.
To compensate for this I have a field in the form which says: 'Page to Recommend:' and the field contains the homepage of the site as a default.
Evidently this solution isn't nearly user-friendly enough, because users never, ever edit the field. And so the page which gets recommended is always the homepage.
So I am looking to auto-fill that field with the name of the page that the user would like to recommend.
I've got as far as using javascript to autofill the field... but the url is always the url of the popup window, whether I use
parent.location.href
Is there a reference I can use for the window which spawned the javascipt popUp?
Many thanks in advance.