I made a simple frameset for browsing where one frame has a list of ampersand HTML characters and a form whose code you see below. All I want to do is hit the submit button and have it tell the other frame to open the damn URL. for some reason it looks for the url I type in the textbox on my local hard drive, even though I explicitly type out “http://” and so on. (the other frame’s name is “theBrowser” for clarity…
Ok, THAT was weird… my body tag was empty when I typed it (just copied and pasted from my text editor, actually), and look at what the [**code] function put in.
Or, alternatively, using the index value for the target frame:
parent.frames[1].location.href = theURL;
BTW, this requires the “http://” on the front of the URL. You could make it a little more robust by checking the input to see if it had the “http://” and prepending it if it is missing.