473,597 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Clear browsing history

1 New Member
Hi All,

I have this problem. I have a main page, and option to show popup window. This popup window is div + iframe based.
When User clicks to open this popup, he do some staff on it, there are some postbacks. After finish, he closes the popup window.
Finally, after those all, the back button doesnt work ( or I need to click back button many times to have it worked).
I would like to achieve this situation, that between opening and closing this popup window, it wouldnt be on browser's history.

I tried to put location.replac e when this popup is being opened, like this:

popupFrame.cont entWindow.locat ion.replace(url );

And it is Ok. History is not being added. But when user clicks, lets say 'Cancel', I have got history added.
I dont want to reload master page, cause I will lost the state of this page.

Thanks in advance....
Mar 21 '07 #1
4 4483
sandyw
122 New Member
I would avoid pop-ups. Many people have pop-up blockers so most people will not see your info.

my two cents as a web master
sandy
Mar 22 '07 #2
acoder
16,027 Recognized Expert Moderator MVP
Hi All,

I have this problem. I have a main page, and option to show popup window. This popup window is div + iframe based.
When User clicks to open this popup, he do some staff on it, there are some postbacks. After finish, he closes the popup window.
Finally, after those all, the back button doesnt work ( or I need to click back button many times to have it worked).
I would like to achieve this situation, that between opening and closing this popup window, it wouldnt be on browser's history.

I tried to put location.replac e when this popup is being opened, like this:

popupFrame.cont entWindow.locat ion.replace(url );

And it is Ok. History is not being added. But when user clicks, lets say 'Cancel', I have got history added.
I dont want to reload master page, cause I will lost the state of this page.

Thanks in advance....
Click 'cancel' on what? You can capture that event and replace the url to prevent the history being added.
Mar 22 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
I would avoid pop-ups. Many people have pop-up blockers so most people will not see your info.

my two cents as a web master
sandy
To be fair, I think it's not a normal popup, but iframe-based, though I can't say for sure unless I see the code.
Mar 22 '07 #4
dmjpro
2,476 Top Contributor
which event should i capture ????
Mar 22 '07 #5

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

Similar topics

10
2021
by: Paul Kooistra | last post by:
I need a tool to browse text files with a size of 10-20 Mb. These files have a fixed record length of 800 bytes (CR/LF), and containt records used to create printed pages by an external company. Each line (record) contains an 2-character identifier, like 'A0' or 'C1'. The identifier identifies the record format for the line, thereby allowing different record formats to be used in a textfile. For example: An A0 record may consist of:
9
3206
by: Steve | last post by:
How can I programmatically clear the internet history in Windows XP? I tried downloading the PowerToys which contain TweakUI as this used to do it in previous versions of Windows, but the option is not there. I then tried installing an old version of TweakUI but this does not work either. I assume if the contents of '..Local Settings\History' could be deleted then this would work but how do you this from a script. Is there anyway in...
1
4157
by: David | last post by:
A user logs into a web site. He is then redirected to a web page of his choosing - based on menu options - for example: "WeeklyReport.aspx" is a page the user is currently viewing If the user session times out, I redirect the user to a "logoff.aspx" web page that now informs the user he must relogin to the web site Question: Is there anyway to clear the browser's history list (prior to Response.Redirect("logoff.aspx") - to ensure the user...
2
2298
by: Noodle | last post by:
Hi All, I know that document.referrer can be used to get the last page the user visited, but how can I get the page visited before that? Can this be done in JS? TIA
9
4485
by: vighnesh | last post by:
Hi Folks Greetings to you all. I have been dealing a project, in which one of the requirement is to clear FireFox browser history programatically. Can anybody suggest me, how this can be implemented in either VB/C#.NET? Thanking You in Advance Regards
6
9021
by: John Grandy | last post by:
Does how to delete all of IE's browing history from the command line ? Same as Tools Internet Options Browsing History Delete Delete all... What I'd like is a .bat file.
2
2306
by: Vighneswar | last post by:
Hi All Please let me know is there any way to clear the address bar history ( Typed URLs) of Firefox browser programmatically. Deleting 'index.dat' under profiles folder of firefox will delete both ( history and Typed URLs ). Here I need to clear only the address bar history of firefox. Also is there any way to programmatically delete IE7 browser history on Windows Vista. I could able to delete IE7 browser history on Xp machine, but...
2
1813
by: questionit | last post by:
Hi, In IE7, how to find browsing history that would show complete URL like in IE6 where we can goto the website page directly. In IE7, only the site's main name can be seen but not the full link. Does anyone know how to look at complete URLs? Qi
1
2211
by: pavanip | last post by:
hi, I have an application that will find Firefox browing history, Auto complete datalist, Temp offline files and Find Computer list. please give me some idea on Auto complete datalist, Temp offline files and Find Computer list. I tried this task using path C:\documents and settings\eminosoft\Application Data\Mozilla\Firefox\Profiles\38v4t6d1.default But in that path there are 4 .dat files history.dat formhistory.dat persdict.dat etc....
0
7969
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
8272
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
8381
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...
1
8035
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
6688
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5847
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5431
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
3927
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2404
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

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.