Solved

Frames:Need to reload main window

Posted on 1998-12-19
4
150 Views
Last Modified: 2010-04-09
I have a page with 2 frames.  I need to reload the 'Main' frame even if the user has 'surfed' beyond my website with it.  I want the NavBar on the left to break off and just leave what is in the 'Main' frame.  I need this to work at anytime. Thanks.
0
Comment
Question by:Firelord17
  • 2
4 Comments
 
LVL 5

Expert Comment

by:j_powers
ID: 1840823
If you want it to refresh on a regular basis, you can use the <meta> tag to refresh the frame.
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1840824
Have a link in the nav frame that does:

<a href="javascript:top.location.href="the/main/page.html">

This will load the main page into the top frame at any time.
0
 

Author Comment

by:Firelord17
ID: 1840825
I don't want to reload my homepage.  I want the page (whatever it is - like yahoo.com) to just be displayed without the navibar.  Thanks anyway..  :)
0
 
LVL 4

Accepted Solution

by:
rafistern earned 50 total points
ID: 1840826
OK so what you need is

<a href="javascript:top.location.href=parent.mainframe.location.href">

where I assume you have a frame called mainframe in which the page is displayed.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now