browser-history

How to clear browsers (IE, Firefox, Opera, Chrome) history using JavaScript or Java except from browser itself?

£可爱£侵袭症+ 提交于 2019-11-26 05:38:51
问题 How to clear browsers (IE, Firefox, Opera, Chrome) history using JavaScript or Java, except clearing it from browser itself? 回答1: The document.location data in browsers is generally inaccessible to scripts, because allowing access would give any given site access to your entire browsing history. At most you can do a few simple manipulations, like "go to history entry #37" or "go back one page". But you can't do "what was the address of the page in history entry #23". Most banking sites will

Android read browser history

喜欢而已 提交于 2019-11-26 03:10:05
问题 I want to read browser history in Android phone. I have done some document reading, then I come to know that we can read browser history by android.provider.Browser class. It has : final static Cursor getAllVisitedUrls(ContentResolver cr) ...method which returns Cursor . May I get help to handle Cursor, or any example code to get browser history? 回答1: Not really an answer but I can tell you what I did. I first clone the browser repo and try to reproduce how they get the history. And I started

Intercepting call to the back button in my AJAX application

陌路散爱 提交于 2019-11-26 01:58:46
问题 I have an AJAX app. A user clicks a button, and the page\'s display changes. They click the back button, expecting to go to the original state, but instead, they go to the previous page in their browser. How can I intercept and re-assign the back button event? I\'ve looked into libraries like RSH (which I couldn\'t get to work...), and I\'ve heard that using the hash tag somehow helps, but I can\'t make sense of it. 回答1: Ah, the back button. You might imagine "back" fires a JavaScript event

Prevent user from seeing previously visited secured page after logout

冷暖自知 提交于 2019-11-25 21:44:00
问题 I have the requirement that the end user should not be able to go back to the restricted page after logout/sign out. But currently the end user is able to do that by the browser back button, visiting browser history or even by re-entering the URL in browser\'s address bar. Basically, I want that the end user should not be able to access the restricted page in any way after sign out. How can I achieve this the best? Can I disable the back button with JavaScript? 回答1: You can and should not