473,385 Members | 1,927 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,385 software developers and data experts.

Back Button or Link

<a href="" onclick="history.go(-1); return false;">Your Image or Tex
Link</a
--
FluxForum
-----------------------------------------------------------------------
FluxForums's Profile: http://www.fluxforums.com/member.php...etinfo&userid=
View this thread: http://www.fluxforums.com/showthread.php?threadid=16

Jul 20 '05 #1
1 1237
FluxForums <28******************************@news.teranews.co m> wrote:
<a href="" onclick="history.go(-1); return false;">Your Image or Text
Link</a>
Apart form the obvious failure to verify the existence of the history
object and its - go - method in the execution environment of this
script, a recurring (and unsolvable) problem with "back" button scripts
is that they cannot know whether there is a history to go back into. If
the page was opened in a new window or tab, accessed as a home page or
from a desktop link then there is no preceding URL and the code cannot
do anything.

The browser knows these details and greys out the back button (and
context menu entry) when there is no history. Attempting to reproduce
normal browser behaviour with a script places a considerable onus on the
script author to do as good a job as the browser would have. There is no
point re-inventing a wheel if it is going to be square.

Having realised that the control should be evidently disabled whenever
there is no history to go back into, it should also be clear that the
control should be evidently disabled or missing whenever the browser in
use does not support scripting at all.

<snip>FluxForums's Profile: http://www.fluxforums.com/...

<snip>

As you appear to have some connection with this web site, you should
maybe consider how wise it is to drop unsuspecting users of your site
(potentially clients by the look of some of the other services offered)
into Usenet newsgroups without even warning them where they are posting
to. Usenet is not something that you can take advantage of without any
consequences. The potential for generating negative publicity alone can
be considerable. If you want to see how it works go to groups.google.com
and search alt.html, alt,html.critique,
comp.infosystems.www.authoring.stylesheets and comp.lang.javascript for
"forum4designers" and see what potential troubles you are inviting.

Richard.
Jul 20 '05 #2

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

Similar topics

4
by: Billy Boone | last post by:
I have a web form that allows the user to enter several pieces of information. They can then click to see the results (which takes them to a report form). From this form, if the user clicks the...
5
by: Diffident | last post by:
Hello All, Most of you might be familiar with this problem i.e, viewstate is lost whenever we navigate from the one page to another. Does anyone have a remedy for this problem? On Page A, I...
1
by: dapkniht | last post by:
Hello, Here's my situation... I have an ASP.NET 2.0 (C#) page with a link button. When a user clicks the button I need it to execute the code behind code for the link button on click event. At...
11
by: prophet | last post by:
Here is a simple on that I need help with..... I need to create a link "back" that when you click it, it returns you back to the previous page that you were at. I am not looking for button...
7
by: mohammed.naghman | last post by:
Hi, I have 2 submit buttons in a jsp page. One of them takes me to page2.jsp and also passes the values enetered to page2.I have a link in the page2 that does a history.back to come to the...
4
by: bendlam | last post by:
I have a page that contains search criteria and when you click on the search button it causes a post back that populates a dataview on the same page. One of the gridview columns contains a link...
6
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly...
12
by: jim.richardson | last post by:
Hi all, I'd like a page to be excluded from the back button history, that is, when a user hits their browser's back button, it never backs into this particular page. Can anybody please tell...
5
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi I have a search page which display a grid of master records. Those records that have children have a hyperlink that takes the user to the Details page for that record. How can I implement...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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,...

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.