Forum Moderators: open

Message Too Old, No Replies

Help with frames and URLs

         

MediumDave

6:35 pm on Apr 21, 2005 (gmt 0)

10+ Year Member



Can anybody help me?

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

orion_rus

1:03 pm on Apr 23, 2005 (gmt 0)

10+ Year Member



are you produce this page from the php? if so just use common php variables
Good luck to you