Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8733131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:35:05+00:00 2026-06-13T09:35:05+00:00

I have a page where i have used framsets. Top Frame = header information(Like

  • 0

I have a page where i have used framsets.

Top Frame = header information(Like logout, login user information etc)
left Frame = Menu Items
Center Frame = Data pages for the corresponding clicked menu

My problem is when i try to log out from the application The logout functionalist is called in header section and it also works find but the other frames are not closed.

How to over come this :

This the overall design with formsets

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>
<%
    String resourcePath = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="favicon.ico">
<title>SecureEyes - Infusing Security</title>
<script language="javascript" type="text/javascript" src="<%=resourcePath%>/scripts/frameset.js"></script>
<script language="javascript" type="text/javascript" src="<%=resourcePath%>/scripts/commonForHomePageTemplate.js"></script>
<script language="javascript">
<!--
var opt_no_frames = false;
var opt_integrated_mode = false;
var _help_prefix = "";
var _help_module = "";
var _context = "";
//-->
</script>
</head>

            <frameset border="0" frameborder="0" framespacing="0" rows="64,*">
                <form method="post" >

                    <frame border="0" frameborder="0" framespacing="0" id="topFrame" name="topFrame" src="<%=resourcePath%>/common/header.jsp" marginheight="0" marginwidth="0" noresize="noresize" scrolling="no">
                    <frameset border="0" frameborder="0" framespacing="0" id="MainFrameSet" cols="209,*">
                            <frame noresize="noresize" border="0" frameborder="0" framespacing="0" id="leftFrame" name="leftFrame" src="<%=resourcePath%>/common/left_menu.jsp" >
                            <frame border="0" frameborder="0" framespacing="0" id="workFrame" name="workFrame" src="<%=resourcePath%>/common/WelcomePage.jsp" marginheight="7" marginwidth="7" noresize="noresize" scrolling="auto">
                    </frameset>
                     <input type="hidden" id="method" name="method" />
                </form> 
            </frameset>
</html>

this is the place where i have logout functionalities :

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ page contentType="text/html"%>
<%@ page pageEncoding="UTF-8"%>
<%@page  import="com.secureyes.eswastha.struts.viewmodel.UserViewModel"%>
<%
    String resourcePath = request.getContextPath();
    UserViewModel userVM = new  UserViewModel();
    if(session.getAttribute("userDetails")!=null){
        userVM = (UserViewModel) session.getAttribute("userDetails");
    }
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="shortcut icon" href="https://indedev.com:8443/favicon.ico">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script language="javascript" type="text/javascript" src="<%=resourcePath%>/scripts/commonForHomePageTemplate.js"></script>
        <script language="javascript" type="text/javascript" src="<%=resourcePath%>/header_data/prototype.js"></script>
        <script language="javascript" type="text/javascript" src="<%=resourcePath%>/header_data/tooltip.js"></script>

        <link rel="stylesheet" type="text/css" href="<%=resourcePath%>/header_data/general.css">
        <link rel="stylesheet" type="text/css" href="<%=resourcePath%>/header_data/custom.css">
        <link rel="stylesheet" type="text/css" href="<%=resourcePath%>/header_data/layout.css">
        <link rel="stylesheet" type="text/nonsense" href="<%=resourcePath%>/header_data/misc.css">

<script>
    var tooltip;
    var opt_no_frames = false;
    var opt_integrated_mode = false;

        function logOut(){
        top.close();
        document.forms[0].action="LogoutAction.htm";
        document.forms[0].method.value="loginPage";
        document.forms[0].submit();
    }
</script>
<script>
    history.forward();
</script>

</head>
<body onload="SetContext(''); " onunload="" id="topCP">
<div class="body">
    <form method="post"> 
    <table cellspacing="0" width="100%">
        <tbody>
            <tr>
                <td class="companyLogo"><span class="topLogo"><img src="<%=resourcePath%>/header_data/logo.png" name="logo" border="0" height="53"></span></td>
                <td>
                    <div id="topTxtBlock" class="withTopRightLogo">
                        <span id="topTxtLoggedInAs">Logged in as <b><%=userVM.getUsername()%></b></span>
                        <span id="topTxtMyAccount"><a class="tootlipObserved" name="" id="" href="#" onmouseover='tooltip.set(event, [{"type":"string","string":"View preferences of your control panel account."}]);' onmouseout="tooltip.hide();" >My account</a></span>
                        <span id="topTxtLogout"><a class="tootlipObserved" href="#" onclick='if (confirm("Are you sure you want to log out?")) logOut("logout"); return false;' onmouseover='tooltip.set(event, [{"type":"string","string":"Log out of eSwastha."}]);' onmouseout="tooltip.hide();">Log out</a></span>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
        <input type="hidden" id="method" name="method" />
    </form>
</div>
<div style="position: absolute; top: 14px; left: 1111px; display: none;" class="tooltip">View preferences of your control panel account.<br></div>
</body>
</html>

When i press refresh than everything is loading again, so how to disable refresh and back and forward functionality using javascript ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:35:06+00:00Added an answer on June 13, 2026 at 9:35 am

    Simple answer: Don’t – use – frames

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that allows for used input, when the user inputs his/her
I have one login page used by all users on the site. However, once
I have page register.php, which is used to get user informations, after completion of
In MVC2 I have used Page.User.Identity.Name using the <%@ Control Language=C# Inherits=System.Web.Mvc.ViewUserControl %> How
I have a page which is used to display numerous forms for the user
I have this bit of jQuery at the top of my page (used for
I have a page that will basically be used to concatenate a bunch of
I have a page with a Flash animation being used for the logo. When
I'm have a page that will be used (and hence styled) only for printing.
I have a page where there is currently more than one form. I used

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.