Click to See Complete Forum and Search --> : Setting the location of a frame, from another


cezza30
02-19-2003, 01:32 PM
I'm trying to make my own extremely simple 'browser' where I have a page with two frames, the bottom one being a menu bar. In that menu bar I have a form consisting of text box, where I want the user to type the URL, and a button.

I'm having trouble getting the value from the text box and setting it as the location of the top frame.

I thought this would be easy :S !!!

Thank you for any help . . . .

pyro
02-19-2003, 01:41 PM
Something like this should be what you are looking for...

top.framename.location.href = document.formname.inputname.value;

Where items in bold are changed to reflect the names you used on your page.

cezza30
02-19-2003, 01:52 PM
Thank you!!! My god that was quick :)