Forum Moderators: open
Basically I want to store the URL of a page as a Javascript variable. The page is contained in a separate frame (let's call it URLFrame) to the one where I want to add JavaScript code (call it ScriptFrame).
The trouble is the page who's URL I require is produced using Google's 'I'm Feeling Lucky' script. Basically I have a PHP script that sets the header of URLFrame to be equal to:
[google.co.uk...] where searchString is a variable.
This URL sends the user to the first returned result of the Google search - it is the URL of this result that I require in my JavaScript, but don't know how to get it.
Any help or tips would be GREATLY GREATLY appreciated.
Thank you.
Tom