Hey. I was having a bit of trouble with frames and javascript, and I was wondering if any of you could help me out. I'm trying to make a code that would enable me to make a website somewhat like an internet browser with an address bar at the top. When you type in the website in the address bar and click "Submit", the frame underneath it would go to that website, but the top frame with the address bar would stay there. Here is what I have so far:
topframe.htm:
bottomframe.htm is just a blank page.Code:<input maxLength=300 size=50 type="value" value="http://" name="address"><input type="button" value="Submit" onclick="bottomframe.src=document.address">
Then, index.htm puts these frames together using the following code:
The full website can be found here.Code:<frameset rows="15%,85%"> <frame name="topframe" noresize="noresize" src="topframe.htm"> <frame name="bottomframe" src="bottomframe.htm">
The problem I am having is that it says:
Error: 'bottomframe' is undefined.
Any help would be appreciated. Thanks.


Reply With Quote
Bookmarks