I got it to work late last night but I had to use another way. I still want to know how to read a url of a frame though. The cgi program is simply printing the html with a form. Nothing special, just a print <<ENDHTML; #html ENDHTML

with a content type and a perl path above. Yes it is a top frame that is about 43 pixels. There is a drop down menu and the text field is hidden. So that's why I wanted it to read the url of the main frame so I could put that into the value of the form. Then people can simply pick the option they want. So everything is on the top frame and I just want the cgi to read the url of the main frame.

If your not enthusiastic about trying to figure this out it's ok because I got it to work by reading the url with a value=url and I have it reading the url and inputing that into the value. So that way I put the urls in on the link.