Solved

Frame problem

Posted on 2002-07-21
1
168 Views
Last Modified: 2010-04-01
Hi, all

I have created a page called index.jsp. It has 2 frames: a header frame and a main frame. When I click on a "Home" button on the main frame, the main frame shows home.jsp. But when I type (my server name)/home.jsp, I need to get to the index.jsp with home.jsp on the main frame. How can I do it? Thanks.
0
Comment
Question by:jl2001
1 Comment
 
LVL 33

Accepted Solution

by:
knightEknight earned 50 total points
ID: 7169283
Put this in home.jsp:

<HTML>
<HEAD>
<SCRIPT language='javascript'>
 top.name = "topFrame";
 if ( top.name != self.name )
    top.location = "index.jsp";
</script>
</head>
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
February 24, 2017 — On February 23, Travis Ormandy, a vulnerability researcher at Google, reported on Twitter (https://twitter.com/taviso/status/834900838837411840) that massive stores of data have been leaked by CloudFlare, a company that provide…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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