PDA

View Full Version : Passing QueryStrings from Address Location to a FormField in a web page within frames


Michell
03-08-2003, 03:46 PM
I have index.html which defines the frames i.e. top, right, bottom and content which loads the following html files respectively; header.html, menuopt.html, footer.html & home.html.

I would like to invoke the web site from the URL in this manner:
http://www.frusco.notworking/index.html?dragonblake

thus loading up all four web pages and have dragonblake move into a form field in footer.html

I would appreciate all help in this matter as I am very new with java script. All help extended will be much appreciated.

cheesebagpipe
03-08-2003, 10:45 PM
Try this, in your frameset document:

<frameset.........onload="footer.document.form_name.field_name.value=location.search.substring(1);">

Michell
03-09-2003, 02:37 AM
CheeseBagPipe, you're a wonder. Thanks a million.