frameset question

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

I have a page with 2 frames loading on same page. When I move from that page
to another on my site the top frame is left displayed. Not all pages use
framesets. How can I remove both pages on exit?
In the W3C reference I found refernce to an 'unload' parameter but am not
sure how to use it. Help.

The page code is below:

<HTML>
<HEAD>
<TITLE>Lifefacile Chalet/Motel Page </TITLE>
</HEAD>
<FRAMESET rows="150,*">
<FRAME SRC="motel-top-scroller.html" NAME="scroller" scrolling=no
frameBorder=No>
<FRAME SRC="motel.html" NAME="menu" frameBorder=No scrolling=yes>
</frameset>
</HTML>
 
I think it's just a matter of the 'target" parameter in your href links.

I.e. to open a page within the main frame it would be like <a
href="main.html" target="main">Main Link</a>
But if you want to open a page full-window it would be something like <a
href="main.html" target="_main">Main windows</a>. THe "_main" bit forces
the linked page to open full page (screen) rather than within the frameset
page. To go back to a page within the frameset from the full page, you
would just link back to the 'frames.html' page and add target=[whichever
frame] which is where you want that page to load.

I don't think "unload" has any bearing on what you want to do; but I could
be wrong.
 
The page, as is, works fine. Both frames are displayed on the page. The
problem is that when I switch to a different page the top frame is left
displayed at the top of the new page. I need to have both frames removed on
exit.
Larry

Andrew Murray said:
I think it's just a matter of the 'target" parameter in your href links.

I.e. to open a page within the main frame it would be like <a
href="main.html" target="main">Main Link</a>
But if you want to open a page full-window it would be something like <a
href="main.html" target="_main">Main windows</a>. THe "_main" bit forces
the linked page to open full page (screen) rather than within the frameset
page. To go back to a page within the frameset from the full page, you
would just link back to the 'frames.html' page and add target=[whichever
frame] which is where you want that page to load.

I don't think "unload" has any bearing on what you want to do; but I could
be wrong.



Larry said:
I have a page with 2 frames loading on same page. When I move from that
page to another on my site the top frame is left displayed. Not all pages
use framesets. How can I remove both pages on exit?
In the W3C reference I found refernce to an 'unload' parameter but am not
sure how to use it. Help.

The page code is below:

<HTML>
<HEAD>
<TITLE>Lifefacile Chalet/Motel Page </TITLE>
</HEAD>
<FRAMESET rows="150,*">
<FRAME SRC="motel-top-scroller.html" NAME="scroller" scrolling=no
frameBorder=No>
<FRAME SRC="motel.html" NAME="menu" frameBorder=No scrolling=yes>
</frameset>
</HTML>
 
To remove your frameset from a linked page use target="_top" in the link to that page
- will display the page w/o frames

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


The page, as is, works fine. Both frames are displayed on the page. The
problem is that when I switch to a different page the top frame is left
displayed at the top of the new page. I need to have both frames removed on
exit.
Larry

Andrew Murray said:
I think it's just a matter of the 'target" parameter in your href links.

I.e. to open a page within the main frame it would be like <a
href="main.html" target="main">Main Link</a>
But if you want to open a page full-window it would be something like <a
href="main.html" target="_main">Main windows</a>. THe "_main" bit forces
the linked page to open full page (screen) rather than within the frameset
page. To go back to a page within the frameset from the full page, you
would just link back to the 'frames.html' page and add target=[whichever
frame] which is where you want that page to load.

I don't think "unload" has any bearing on what you want to do; but I could
be wrong.



Larry said:
I have a page with 2 frames loading on same page. When I move from that
page to another on my site the top frame is left displayed. Not all pages
use framesets. How can I remove both pages on exit?
In the W3C reference I found refernce to an 'unload' parameter but am not
sure how to use it. Help.

The page code is below:

<HTML>
<HEAD>
<TITLE>Lifefacile Chalet/Motel Page </TITLE>
</HEAD>
<FRAMESET rows="150,*">
<FRAME SRC="motel-top-scroller.html" NAME="scroller" scrolling=no
frameBorder=No>
<FRAME SRC="motel.html" NAME="menu" frameBorder=No scrolling=yes>
</frameset>
</HTML>
 
I found a script I had used in a previous web. Works fine when put in the
HEAD section of pages:

<script language="JavaScript"><!--
//If someone else tries to display this page within a frame, break out.
if (parent.frames.length > 0) {
parent.location.href = location.href
}
//--></script>

Thanks for the input.

Larry



Stefan B Rusynko said:
To remove your frameset from a linked page use target="_top" in the link
to that page
- will display the page w/o frames

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


The page, as is, works fine. Both frames are displayed on the page. The
problem is that when I switch to a different page the top frame is left
displayed at the top of the new page. I need to have both frames removed
on
exit.
Larry

Andrew Murray said:
I think it's just a matter of the 'target" parameter in your href links.

I.e. to open a page within the main frame it would be like <a
href="main.html" target="main">Main Link</a>
But if you want to open a page full-window it would be something like <a
href="main.html" target="_main">Main windows</a>. THe "_main" bit forces
the linked page to open full page (screen) rather than within the
frameset
page. To go back to a page within the frameset from the full page, you
would just link back to the 'frames.html' page and add target=[whichever
frame] which is where you want that page to load.

I don't think "unload" has any bearing on what you want to do; but I
could
be wrong.



Larry said:
I have a page with 2 frames loading on same page. When I move from that
page to another on my site the top frame is left displayed. Not all
pages
use framesets. How can I remove both pages on exit?
In the W3C reference I found refernce to an 'unload' parameter but am
not
sure how to use it. Help.

The page code is below:

<HTML>
<HEAD>
<TITLE>Lifefacile Chalet/Motel Page </TITLE>
</HEAD>
<FRAMESET rows="150,*">
<FRAME SRC="motel-top-scroller.html" NAME="scroller" scrolling=no
frameBorder=No>
<FRAME SRC="motel.html" NAME="menu" frameBorder=No scrolling=yes>
</frameset>
</HTML>
 
Back
Top