Solved

Frame problem

Posted on 2002-07-21
1
167 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache-Tomcat Single Sign On with NTLM/Kerberos on Windows 2008R2 3 202
servlet init param and contect param 3 59
'exit' is not valid keyword in java 14 147
equalIsNot  challenge 43 133
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 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

23 Experts available now in Live!

Get 1:1 Help Now