473,837 Members | 1,558 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript:hist ory.back() for frame

Ike
Can someone show me how I can have:

<a href="javascrip t:history.back( )" name="Back" value="Back"
style=width:40p x;float:right;m argin-left:0px class="button" >Back</a>

but since this href exists in a frame, it only pertains to this frame?
Thanks, Ike
Jul 23 '05 #1
4 13605

Ike wrote:
Can someone show me how I can have:

<a href="javascrip t:history.back( )" name="Back" value="Back"
style=width:40p x;float:right;m argin-left:0px class="button" >Back</a>

but since this href exists in a frame, it only pertains to this frame? Thanks, Ike


using frames breaks the back function (in the sense the user expects it
to work, not in the sense of a browser crash). bear in mind that the
back button is by FAR FAR FAR the most used navigation feature - so
avoid frames.

if you insist on frames:

write your own back function - means read history content, determine
the state of each frame from that value, change the frames (using js).
but don't expect visitors to use it - they'll use the back button of
the browser - and you can't fix the frame problem there.
micha

Jul 23 '05 #2
micha wrote:
Ike wrote:
Can someone show me how I can have:

<a href="javascrip t:history.back( )" name="Back" value="Back"
style=width:4 0px;float:right ;margin-left:0px class="button" >Back</a>

but since this href exists in a frame, it only pertains to this


frame?
Thanks, Ike

using frames breaks the back function (in the sense the user expects it
to work, not in the sense of a browser crash). bear in mind that the
back button is by FAR FAR FAR the most used navigation feature - so
avoid frames.

if you insist on frames:

write your own back function - means read history content,


And just how do you propose to "read history content"? Anything you do
that depends on the ability to read the history contents is doomed to
failure before you even start.
--
Randy
Jul 23 '05 #3

Randy Webb wrote:
micha wrote:
Ike wrote:
Can someone show me how I can have:

<a href="javascrip t:history.back( )" name="Back" value="Back"
style=width:4 0px;float:right ;margin-left:0px class="button"Back</a>
but since this href exists in a frame, it only pertains to this
frame?
Thanks, Ike

using frames breaks the back function (in the sense the user expects it to work, not in the sense of a browser crash). bear in mind that the back button is by FAR FAR FAR the most used navigation feature - so
avoid frames.

if you insist on frames:

write your own back function - means read history content,


And just how do you propose to "read history content"? Anything you

do that depends on the ability to read the history contents is doomed to failure before you even start.
--
Randy


you're right of course. i haven't done much in javascript for a while,
so i forgot. you can't read the history. in that case you'd have to
mock up something like you own history for a solution of the frame
problem - which definitivly won't be reliable and a lot of hassle. so
it all boils down to what i tried to make clear in my 1st post - don't
use frames.
i found that about any functionality frames provide can be replaced
very well by some kind of template system, i.e. for navigation and
logo.

micha

Jul 23 '05 #4
micha wrote:
Ike wrote:
Can someone show me how I can have:

<a href="javascrip t:history.back( )" name="Back" value="Back"
style=width:40p x;float:right;m argin-left:0px class="button" >Back</a>

but since this href exists in a frame, it only pertains to this
frame? Thanks, Ike


using frames breaks the back function (in the sense the user expects it
to work, not in the sense of a browser crash).


It does not, as the history of the frameset window consists of the combined
histories of every frame. However, users that are not aware that they are
using a frameset may be confused by the normal behavior.
PointedEars
Jul 23 '05 #5

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

Similar topics

15
7315
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
1
2796
by: Ian | last post by:
I'd appreciate some help on this one. We use a three-window frameset for online manuals. The "main" window contains our document. Since the documents have hyperlinks between them for related topics, we have "return" links built into a navigation bar on some of the pages. Most of the time these work fine, but if the person clicked on the top or left frame before clicking on the "return" link, the wrong frame is changed. Does anybody...
2
1473
by: Vinnie | last post by:
Is it possible to redirect a user dependent on the domain of the last web page viewed? For example, if the user came from "thisdomain.com", I want to redirect them back to this page. But, if the user came from "otherdomain.com", I want to direct them to a different page in "thisdomain.com." So, there would have to be a way to retrieve the URL of the previous page viewed. Information on Microsoft's web page says it is not possible to...
3
3065
by: Jake | last post by:
Im using some custom javascript:history.forward() & javascript:history.back() image buttons on my application. If there is no back or forward history, I would like to display a dimmed(disabled look) image. Is there a way to detect if there is no history in iether direction? Thanks!
2
1333
by: Luke - eat.lemons | last post by:
Hi, I have this function: <script type="text/javascript"> function disp_prompt() { var reqid=prompt("Please enter the membership ID number","") if (reqid!=null && reqid!="") { reqid=reqid }
4
10107
by: Heinrich Wolf | last post by:
Hi all I have a history.back() problem with FF(2). IE works as expected, while FF does not. The multi frame website setup as a whole with a lot of frame content switching works flawlessly in both browsers. In one situation and frame I have a long scrollable list of cars offered for sale. Some list lines are linked to a separate page with images, to be loaded into the same frame as the listing. On closing this image page with <a...
8
1517
by: nitinpatel1117 | last post by:
Hi, What i'm trying to do, may not be possible. but i just wanted to know if there is a way of doing this. Basically what i am trying to achieve is to call the previous php script that was run before the currenttly executing script e.g. if page 'A.php' has a form in it, which has its data posted to page 'B.php'. I want page B.php to do some validation, on the posted data. and based on the results of this validation. I want page B.php...
3
1677
Bob Ross
by: Bob Ross | last post by:
I am trying to create a kind of back button for one my pop up pages. I am just using history.go(-1) for the button. I would like to only make the button visible when the user can go back. the trouble is the hostory.length increases even if the user does go back (when actually there is one less page the user can go back to). Anyone know a way I can get the true amount of pages a user can go back to? Or another way hide a button when a...
0
9844
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
9683
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10883
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10578
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10276
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7006
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5851
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4477
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.