User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,551 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,580 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 9351 | Replies: 6
Reply
Join Date: Nov 2006
Posts: 3
Reputation: chakrapani is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
chakrapani chakrapani is offline Offline
Newbie Poster

Help delete history from browser

  #1  
Nov 6th, 2006
When we signout the form How can i disabling back button and,
not only disabling back button but also delete history from browser.
Suppose i used
<script language="javascript" >
javascript: window.history.forward(1);
</script>
to disable back button , its working.
when i go to back list and click previous histories it shows data. so data hiding is important to my project. how can i delete browser history plz help me as early as possible. ok bye
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,360
Reputation: masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough masijade is a jewel in the rough 
Rep Power: 8
Solved Threads: 117
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Virtuoso

Re: delete history from browser

  #2  
Nov 6th, 2006
JavaScript != Java

Find a JavaScript Forum
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Feb 2006
Location: UK
Posts: 468
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Rep Power: 5
Solved Threads: 42
Bench's Avatar
Bench Bench is offline Offline
Posting Pro in Training

Re: delete history from browser

  #3  
Nov 10th, 2006
Also, I would consider any code which attempted to automatically delete anything from my machine (whether it were browser history or otherwise) without my permission as malicious code.

Your intentions may not be malicious, but you should seriously think about how users of your website are going to react. You'll find your site losing its visitors pretty quickly!
¿umop apisdn upside down?
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: delete history from browser

  #4  
Nov 10th, 2006
You can't do it and it's a good thing. Altering a user's browser is very bad form.
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Feb 2006
Location: UK
Posts: 468
Reputation: Bench has a spectacular aura about Bench has a spectacular aura about Bench has a spectacular aura about 
Rep Power: 5
Solved Threads: 42
Bench's Avatar
Bench Bench is offline Offline
Posting Pro in Training

Re: delete history from browser

  #5  
Nov 10th, 2006
Originally Posted by stymiee View Post
You can't do it and it's a good thing. Altering a user's browser is very bad form.
I was fairly sure it wasn't possible when i wrote that message, Else I'm sure by now I'd have been directed to one of a-lebenty-something "joke" websites which remove your browser history and fiddle with your settings (in such a similar vein to those which used to use recursive popup windows in order to crash your browser - oh, the hilarity!)
¿umop apisdn upside down?
Reply With Quote  
Join Date: Jul 2005
Location: india
Posts: 143
Reputation: katarey is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 15
katarey's Avatar
katarey katarey is offline Offline
Junior Poster

Help Re: delete history from browser

  #6  
Nov 10th, 2006
Hi There,

well there is not any specific way to remove the client side history,
but you can use this function, use this function body onload

Write in <head>
<script language="JavaScript"><!--
function DisablingBackFunctionality()
{
var URL;
var i ;
var QryStrValue;
URL=window.location.href ;
i=URL.indexOf("?");
QryStrValue=URL.substring(i+1);
if (QryStrValue!='X')
{
window.location=URL + "?X";
}
}
//--></script> 

write in body tag

<body onload="DisablingBackFunctionality();">

there are some more way to do this


Rahul Dev
Freelance Web Designer & Developer
Http//www.Katarey.com
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 936
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is online now Online
Posting Shark

Re: delete history from browser

  #7  
Nov 11th, 2006
think the other way around. instead of deleting the history, don't create it in the first place. there's various methods, all require server side scripting or public web proxies. basic method is, have a blank page that inserts the "secret" page when it's neccessary.

the history will only see the blank page. use a recognised (secret of course) POSTDATA message to trigger the insertion of the secret page, otherwise the "blank" page will always show it.

using an iframe/frame to insert the "secret" page isn't good enough, the history will still see it.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 9:20 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC