Advertisement

12.25.2007 at 06:52PM PST, ID: 23042683
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.0

Refresh a webpage just once when the user clicks the browser Back button or presses Backspace

Asked by jrwalker2 in Hypertext Markup Language (HTML), JavaScript, Cascading Style Sheets (CSS)

Tags: ,

I want to refresh a webpage when a user clicks the browser Back button or presses Backspace on the keyboard. This is my scenario:

1. From page 1, I click on my header image map that takes me from the page 1 to page 2
2. From page 2, I click the browser's Back button to go back to page 1
3. On page 1, there now seems to now be a dotted outline of the header (shifted to the right) present on top of the actual header

If I click anywhere on the page (or refresh), the dotted rectangle disappears

My Question
---------------
Is there a way to refresh a page using html (I tried the meta refresh but it continues to refresh after a certain amount of time...I have also tried opener.location.reload() but it did not work), or simulate a click on a certain part of the page? Any ideas of where this page dotted rectangle is coming from?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="Global.css" type="text/css" />
        <link rel="shortcut icon" href="Logos/favicon.ico">
        <title></title><!--Enter Title here-->
        <style>
            body{margin:20px; font:normal 8pt Verdana}
            #regForm label{display:block;width:100px;float:left;text-align:right;padding-right:5px;padding-top:3px}
            .clearer{clear:both}
            #formMarginTop{padding-top:50px; padding-bottom:250px;}
            #buttonMarginTop{padding-top:100px;}
            #regForm fieldset{padding-bottom:10px; padding-top:10px;margin-bottom:10px;}   
            #home_link  {margin-right:82%;border:none;}
        </style>      
    </head>
    <body>
        
        <div id="pageWrapper">
        <!--Create a new header style in Global.css and change the id below here-->
        <div id="headerTemplate" >
             <a href="index.jsp">
                <img src="Logos/blankSquareHeader.gif" id="home_link" width="80" height="150"/>
            </a>
        </div>
        <div id="content">
        <br class="clearer"><br class="clearer">
        <!-- begin: form -->
        <form id="regForm" name="regFormBody"  method="post">
 
        </form>
        <!-- end: form -->
        <div id="footer"><img src="Logos/blankSquareFooter.gif" width="80" height="80" alt="blankSquare"/></div>
    </body>
</html>
 
 
 
 
 
Global.css
---------------
 
html,body
{
    margin:0;
    padding:0;
}
 
body
{
    /*font: 76% arial,sans-serif;*/
    text-align:center;
    background-image: url(Logos/backgroundColor2.gif); 
    background-repeat: repeat-y;  
    margin: 20px; 
    font: normal 8pt Verdana;
 
}
 
div#headerTemplate
{
    /*-position: center top;*/
    background-image: url(Logos/templateHeader.gif);
    background-repeat: no-repeat;   
    position: relative
}
div#footer
{
    /*background-position: center bottom;*/
    background-image: url(Logos/footer2.gif);
    background-repeat: no-repeat;   
    position: relative;
}
 
div#content
{
    text-align: center;
    height: 450px;
    width: 800px;
    background-position: center;
 
}
 
 
div#pageWrapper
{
    margin-left: auto; 
    margin-right: auto; 
    width: 76%;
}
 
form 
{
            
    margin: 0 auto;
    padding: 0;
    border: none;
}
.title 
{
    margin: 0;
    padding: 5px 15px;
 
}
legend
{
    color: black;
}
 
.leftbox 
{
    width: 50%;
    float: left;
}
.rightbox 
{
    width: 50%;
    float: right;
}
.clear 
{
    clear: both;
}
*
{
margin: 0;
padding: 0;
}
        
 
        
#regForm label
{
display: block;
width: 100px;
float: left;
text-align: right;
padding-right: 5px;
padding-top : 3px
}
 
.clearer
{
clear: both;
}
 
 
[+][-]12.25.2007 at 07:26PM PST, ID: 20528272

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.25.2007 at 07:41PM PST, ID: 20528288

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.26.2007 at 12:39AM PST, ID: 20528645

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.26.2007 at 06:50AM PST, ID: 20529291

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.26.2007 at 07:43AM PST, ID: 20529488

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.27.2007 at 11:50AM PST, ID: 20536557

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2007 at 01:11PM PST, ID: 20537218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.27.2007 at 01:38PM PST, ID: 20537428

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.27.2007 at 10:57PM PST, ID: 20540140

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.28.2007 at 07:59AM PST, ID: 20542659

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Hypertext Markup Language (HTML), JavaScript, Cascading Style Sheets (CSS)
Tags: page, refresh
Sign Up Now!
Solution Provided By: jrwalker2
Participating Experts: 3
Solution Grade: B
 
 
[+][-]12.28.2007 at 08:55AM PST, ID: 20543166

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628