473,325 Members | 2,442 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,325 software developers and data experts.

clear history using javascript

Hello i have to clear browser history ,I am using the following code(location.replace(this.href); return false;) but this is not working,Please help me on this,Or give me code.

Thanks in advance.
Aug 27 '10 #1
8 5132
Dormilich
8,658 Expert Mod 8TB
the JavaScript location object has nothing to do with the browser’s history.

cited from MDC
[the location object] contains information about the URL of the document and provides methods for changing that URL. You can also assign to this property to load another URL.
you may happen to mean the history object.
Aug 27 '10 #2
Thanks for reply,I know the history objects and its methods,I wants to clear the browser history,So can we do this ?Thanks for help.
Aug 27 '10 #3
Dormilich
8,658 Expert Mod 8TB
that is all discussed in the link I gave you.
Aug 27 '10 #4
Thanks for reply,I know the history objects and its methods,I wants to clear the browser history,So can we do this? Thanks for help.
Aug 27 '10 #5
Yes,But i knew earlier,Please help me on clearing the browser history.
Aug 27 '10 #6
omerbutt
638 512MB
if you are trying to restrict the usear from going back then you can use this
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript" >
  2. history.go(1); /* undo user navigation (ex: IE Back Button) */
  3. </script>
  4.  
As for the original question... no, you can't delete/change/etc files that are on the users' computers. Simple as that.

You could do a cookie/IP/session/etc tracking with server or client side programming, or try what twey suggested.
Aug 27 '10 #7
Thank u so much omerbutt.
Aug 27 '10 #8
omerbutt
638 512MB
did that solved your problem
Aug 27 '10 #9

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

Similar topics

7
by: julio | last post by:
I need to clear the history via javascript or other via, but inside from an aspx page. Any help would be appreciated. Thanks! Julio
8
by: Alex D. | last post by:
does any body knows how to open a new IE window and close the favorites tab and history tab (if tabs enabled)? problem is that when opening new windows(pop-ups) with absolute size and the user has...
1
by: Shrihari | last post by:
Hi All, I want to know, is there any other methods other than history.forward(), to disable back operation in HTML using javascript. if any one knows, I appriciate for the solution.
2
by: kunal30doshi | last post by:
any idea of clear history with java script.
9
by: questionit | last post by:
Hello Experts If the 'Clear history' button is disbaled in 'Internet Properties' in the control Panel, how can it be enabled ? Probably , by some settings in Registry ? Please give me clues...
1
by: santhoskumara | last post by:
I am using Internet Explorer browser, I want to know how to clear cache and cookies using javascript function or java, when each time the page is loaded. i know to do manually in IE using TOOLS...
1
by: aashishsah | last post by:
Hi, Can anybody tell me how can we remove history using javascript? Bye
3
nirmalsingh
by: nirmalsingh | last post by:
we are using YAHOO Api to maintain browser hsitory using ajax submission not a any form submission and without any url changing in location bar , Just passing DIV id and url and getting response...
1
by: vivek kapile | last post by:
Title:Dynamically adding table row with a checkbox using JavaScript Author:Vivek Kapile Email:snipped Language:JavaScript Platform:JavaScript in ASP.net Technology:Used in ASP.net...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.