473,386 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Reloading original frameset

Tom
I have a site with frames. Like most sites with frames, clicking
links in one frame changes the page in the other frame.

Obviously, if someone puts in the URL for my site, they will get the
"homepage" when they first get there. What I would like to accomplish
is that if they leave my site, and then use the BACK button to come
back, that the site will open with the homepage, not whatever page
they were at when they left. Is that possible using javascript? If
so, how?

My site isn't actually "on the web" yet, so I can't give you a URL.
Thanks for any help!

tom
Jul 23 '05 #1
2 1040
In article <f0**************************@posting.google.com >,
to*********@bigfoot.com enlightened us with...
I have a site with frames.
Why?
http://www.html-faq.com/htmlframes/?framesareevil

Obviously, if someone puts in the URL for my site, they will get the
"homepage" when they first get there. What I would like to accomplish
is that if they leave my site, and then use the BACK button to come
back, that the site will open with the homepage, not whatever page
they were at when they left. Is that possible using javascript? If
so, how?


Why in the world would you want to do something so horrible and anti-
user-friendly? What did your users do to you to deserve such a thing?
*g*

Can it be done? No, not reliably. The page doesn't usually reload when
the user hits the back button. You might be able to hack up a solution
that would work in some browsers with a setTimeout and a check and
probably a cookie, but you're going to irritate the holy hell out of
anyone using your site.

--
--
~kaeli~
Experience is something you don't get until just after you
need it.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #2
Tom
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. ..
In article <f0**************************@posting.google.com >,
to*********@bigfoot.com enlightened us with...
I have a site with frames.
Why?
http://www.html-faq.com/htmlframes/?framesareevil


While I agree with much of what is posted here, I am using frames
precisely because of a couple of the so-called "drawbacks" of frames.
Obviously, if someone puts in the URL for my site, they will get the
"homepage" when they first get there. What I would like to accomplish
is that if they leave my site, and then use the BACK button to come
back, that the site will open with the homepage, not whatever page
they were at when they left. Is that possible using javascript? If
so, how?


Why in the world would you want to do something so horrible and anti-
user-friendly? What did your users do to you to deserve such a thing?
*g*


I don't want users to be able to bookmark individual pages of the
site. In fact, it is absolutely critical that they cannot get to any
page without first going through the homepage. There a privacy issues
involved.

Can it be done? No, not reliably. The page doesn't usually reload when
the user hits the back button. You might be able to hack up a solution
that would work in some browsers with a setTimeout and a check and
probably a cookie, but you're going to irritate the holy hell out of
anyone using your site.


Thanks for the info. This isn't critical, but it would have been a
nice addition.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Marcia Gulesian | last post by:
Is there a way of reloading a page programatically - for example, <script language="javascript> document.location.reload() </script> BUT NOT HAVING TO MANUALLY CLICK A "RESET" BUTTOM.
2
by: Ike | last post by:
Suppose I have two frames, as shown in the script below. One of the frames, I would like to have reload every ten minutes or so. Hower, the frame I wish to reload is a php script, which executes...
1
by: Danny | last post by:
I have a frameset with three frames. From one of the frames I generate a new window with the javascript that is at the bottom of this post. From the new window, how can I target a different frame...
3
by: JWizardC | last post by:
I have a simple script that uses next and previous buttons to change the content of another frame in a frameset. Every time I load the target frame, the frame containing the script is also loaded,...
1
by: ROBT NISHIDA | last post by:
Hello, I have a frameset page with 4 frames. There is a form in frame that contains text input boxes. I have image buttons in some of the other frames that invoke javascript functions within...
1
by: Dynamo | last post by:
Hi My site uses frames and some of the frame pages are ranked higher in search engine rankings than the main page. When somebody clicks on the link it takes them to the frame page and they don't...
4
by: R | last post by:
Hi All, I have a problem with reloading JS. I have a DIV where I placed JS code displaying random tricks & tips from other site. at the beggining I had it this way: <div id="tips">
0
by: Eyal | last post by:
hi to all, i have the following: frames.html: <html> <head> </head> <frameset cols="*,*"> <frame src="a.html" name="a" /> <frame src="http://google.com" name="b" />
1
nmm32
by: nmm32 | last post by:
I have this simple HTML page: <html> <head> <title></title> </head> <frameset cols="220,*" FRAMESPACING="0" BORDER="0" FRAMEBORDER="0"> <frame src="left.jsp" name="frame1"...
2
by: Tamer | last post by:
Hi! Is there a way to change the protocoll type through Javascript without reloading (or making a request from the webserver) via Javascript? for example: http://mydomain.com...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.