473,785 Members | 2,990 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

history.back(-1) and refresh @ same time

21 New Member
I want to use history.back(-1) and refresh the page at same time ..
like with history.back(-1) event when the destination page is displayed at that it also be refreshed.
is this possible ?
Feb 28 '08 #1
3 7442
gits
5,390 Recognized Expert Moderator Expert
hi ...

that would be useless ... just read the previous url from the history and set the location of the window/frame like:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'your_previous_url_from_history';
kind regards
Feb 28 '08 #2
bsonline
21 New Member
hi ...

that would be useless ... just read the previous url from the history and set the location of the window/frame like:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'your_previous_url_from_history';
kind regards

how can I get the history????
Mar 11 '08 #3
gits
5,390 Recognized Expert Moderator Expert
the previous url might be retrieved through:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = document.referrer;
to avoid caching you could use:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = document.referrer + '?' + (+ new Date);
which adds a unique timestamp to the request ...

kind regards
Mar 11 '08 #4

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

Similar topics

4
6237
by: Jim Hammond | last post by:
After much effort, it doesn't seem possible to redirect the user to a new page after 10 seconds by using a server-side timer. I am now using the following meta statement to accomplish the same thing: <META HTTP-EQUIV="refresh" content="10;URL=Form_Welcome.aspx"> This seems to work fine, but I now have three concerns because I thought it was supposed to be possible to do everything in C#. 1. Note that Visual Studio lets the developer...
2
2222
by: Prodip Saha | last post by:
I am sure there is an easy fix for this problem. I am reloading the same page at an interval using the meta refresh tag in aspx page. This page has one textbox and one button. The problem is -when the page get posted back to the server the value of the textbox is gone. How do I preserve the value of the textbox that I entered in it? I don't want to use Cache/Session to keep track of the value. That's not an option. Thanks for your...
4
1726
by: jensen bredal | last post by:
Hello, Is there a way to dynamically select how often my page should be refeshed? Any comment will be higly appreciated. Thanks JB
10
32884
by: phforum | last post by:
Hi, I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every minute. But the page always display the dialog box ask me to resend the information. How to disable this warning message. I using POST and REQUEST to get the data from user input page. Thanks all
0
1250
by: Dinesh | last post by:
Hi , Trying to speed up the cache refresh time.... Assumptions: Configurations in the web.config file are done and also Sqldependency is set between the application and the database table. Actual Flow: Whenever I do some manipulations(insert,update) on the the
3
1623
by: ad | last post by:
I have a web page which show a lot of data, it waste a lot of time to show the data. I wnat to know how much time it take to show the data. How can I get it?
2
1883
by: Lonifasiko | last post by:
My ASP.NET application's main page should change values on screen when some extern event occurs (a change in the state of a machine monitored by a .NET Remoting object). That is, this .NET Remoting object that detects a change in a machine, should change or somehow make the page reload in order to show new values on screen. How to make these changes visible to users? The unique way would be to refresh the page every 'N' seconds? Taht is,...
1
4144
by: cookdw60 | last post by:
I am looking for a way to have an access form update for multiple users. I have a form where certain fields will be updated on individual computers, and there may be 3 or 4 users that have the form open at a time. Is there a way to have all users forms simultaneously refresh when a field is updated by one of the clients??? ex. Multiple users have same form open, one makes a change to the data and is critical for other users to see that...
7
8561
by: AccessBeetle | last post by:
I have a form which has a textbox called TimeStamp. When we enter a record, it fills current as well as the next record's TimeStamp as the current time. This seems a bit weired. It should fill the time when a person actually starts to enter the record. Also, sometimes if it takes more than 5 minutes to enter the whole record, in that case the time is still the same as it was when I started to enter the record. Is there any way we can...
0
9645
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
9480
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
10327
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...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6740
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
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4053
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
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.