File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes where do you put frame code? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "where do you put frame code?" Watch "where do you put frame code?" New topic

where do you put frame code?

Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
Talk about your most basic of basic questions. I'm trying to
play with some frames, and I'm just wondering in which file you
put the frame code.
If you have:
<FRAMESET COLS="25%,75%">
<FRAME SRC="whateverA.html">
<FRAME SRC="whateverB.html">
In which of the 2 files do you put it in? Does it matter?
bill bozeman
Ranch Hand

Joined: Jun 30, 2000
Posts: 1070
The frame code goes in a separate html file. So for you example, you are going to have 3 html files. One is the page you direct everything to, like index.html and this will have the code you wrote below. And then you have the two whateverA.html and whateverB.html files that load up in your index.html file.
Annette L'Heureux
Ranch Hand

Joined: Dec 07, 2000
Posts: 135
that makes sense. thanks!
(You'd think they would tell you that in all those tutorials you find on the internet!)
John Wetherbie

Joined: Apr 05, 2000
Posts: 1449
If you are willing to part with some cash the O'reilly book Webmaster in a Nutshell has a good section on frames and a lot of other stuff.
If you buy it online from Amazon (via JavaRanch) you also help keep JavaRanch up and running.

The only reason for time is so that everything doesn't happen all at once.
- Buckaroo Banzai
I agree. Here's the link:
subject: where do you put frame code?
It's not a secret anymore!