Results 1 to 3 of 3

Thread: Using Java with Frames

  1. #1
    Join Date
    Jun 2005

    Using Java with Frames

    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:

    <input maxLength=300 size=50 type="value" value="http://" name="address"><input type="button" value="Submit" onclick="bottomframe.src=document.address">
    bottomframe.htm is just a blank page.

    Then, index.htm puts these frames together using the following code:
    <frameset rows="15%,85%">
    <frame name="topframe" noresize="noresize" src="topframe.htm">
    <frame name="bottomframe" src="bottomframe.htm">
    The full website can be found here.

    The problem I am having is that it says:
    Error: 'bottomframe' is undefined.

    Any help would be appreciated. Thanks.

  2. #2
    Join Date
    Jul 2004
    West Coast, Canada
    Wrong forum. Go to the Javascript forum.

    "Everything in a web browser."

  3. #3
    Join Date
    Jun 2005
    I apologize for that. The thread has been re-posted in the Javascript forum and can be found here:

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center