•
•
•
•
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
![]() |
•
•
Join Date: Nov 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
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
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
JavaScript != Java
Find a JavaScript Forum
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
----------------------------------------------
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
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!
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? •
•
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation:
Rep Power: 5
Solved Threads: 34
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!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
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? 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>
write in body tag
there are some more way to do this
Rahul Dev
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
Http//www.Katarey.com
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 936
Reputation:
Rep Power: 5
Solved Threads: 47
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
- deletion of browser history (JavaScript / DHTML / AJAX)
- Delete History (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Creating CSS Psuedoclasses?
- Next Thread: visibility & disable



Linear Mode