473,548 Members | 2,604 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Back button link delay

3 New Member
Im trying to set up an image link that has a delay before it sends the user back one step in its history. Ive found a number of examples, most using setTimeout, but there doesnt appear to be any way to merge this function with history.go(-1) within the confines of a link. So far this seems to be the closest example i have found, though it just gives me a "page not found 'javascript();' in FF.

Expand|Select|Wrap|Line Numbers
  1. <a href="javascript();" onClick="setTimeout('history.go(-1)', 5000); return false">
  2. <img src="images/back.jpg" width="50" height="25" alt="Go back in 5 seconds"></a>
  3.  
Jan 6 '11 #1
1 2439
Dormilich
8,658 Recognized Expert Moderator Expert
you could try
Expand|Select|Wrap|Line Numbers
  1. <button type="button" id="back">
  2.     <img src="http://bytes.com/images/back.jpg" width="50" height="25" alt="Go back in 5 seconds">
  3. </button>
Expand|Select|Wrap|Line Numbers
  1. document.getElementById("back").onclick = function (evt) {
  2.     setTimeout("history.go(-1)", 5000);
  3. };
technically, you don’t even deed the button or the link.
Jan 6 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
12968
by: Jarkko Kähkönen | last post by:
Hi! I have Windows XP&IE6.0.2... (SP1). I'm coding one project with PHP. I get "Warning: Page has Expired" when I try to get back to the "POSTed page" (page whither moved from FORM-page). Better explanation: - Pages are: * Page A: Front-page
7
4932
by: bigbinc | last post by:
Is there a way to check for the back button? There has got to be a way with either vbscript/javascript. I could place redirect pages in there or some creative? any ideas?
1
1253
by: FluxForums | last post by:
<a href="" onclick="history.go(-1); return false;">Your Image or Tex Link</a -- FluxForum ----------------------------------------------------------------------- FluxForums's Profile: http://www.fluxforums.com/member.php?action=getinfo&userid= View this thread: http://www.fluxforums.com/showthread.php?threadid=16
4
1962
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 Back button on the browser - they are returned to the input form and all of their inputs are what they had entered. However, in the results form I...
7
2260
by: MLH | last post by:
Case in point... http://www.woodplanet.com/index.cfm?path=/main/form/comps/ValleyLumberSalesInc_2033511.htm After reaching this URL, IE's Back button would not take me back to Google, where I had located these guys in the first place. In all fairness to them, their entire site is not riddled with pages that supress the Back button's function....
1
5735
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 the end of the code behind code for the link button click event, I use JavaScript to popup another browser window (using window.open). This all...
6
3473
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 with its own URL in the address bar. When I select the <backbutton in the browser, my domain name appears temporarily in the browser, but it...
12
8084
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 me how to do this? I thought perhaps there would be some kind of special meta tag that says something like "exclude me from browser's history", but...
5
1798
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 a Back button on the Details page that will take the user back to the original search page with all filter/search criteria and the grid filled in?
7
1922
by: swapcool | last post by:
Hi, I am a page having a menu and a few frames life below. The links in menu open in F3 frame. I also have back/forward buttons in F1 frame. ________________________ ____________F1_________| | F2 |................................ | | .... |................................ | | M | .............F3...............| | E |...
0
7512
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...
0
7438
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...
0
7951
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...
0
7803
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...
0
6036
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
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...
0
3475
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1051
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.