browser-history

How to access Google Chrome browser history programmatically on local machine

徘徊边缘 提交于 2019-11-28 03:41:37
I want to write a simple program which shows my internet activity over a period of time (which site I visited, how many times and so on). I mostly use Google Chrome browser. I found out Chrome stores browser history at this location (please correct me if I'm wrong) C:\Documents and Settings\<username>\Local Settings\Application Data\Google\Chrome\User Data\Default How can I open the history files? They don't have any file extension. I could not open using notepad, SQLite browser. How do I access this data programmatically? I want to know which file format it is and how to read it using a

Html5 History Api - pushState from a domain to a subdomain

早过忘川 提交于 2019-11-28 03:18:40
问题 I have a website as the landing and information page to a web portal type of application. I need the link that goes to the portal to set off an animation that beautifully transitions to the portal view (navigation slides out, new navigation slides in, various widgets fade out, new ones fade in, etc). However, I also need the url to go from www.mydomain.com to portal.mydomain.com . I'm willing to go to any length to have BOTH, the animation to load the portal and the url to be a subdomain. As

Loop over “history” in javascript?

北战南征 提交于 2019-11-28 03:03:52
问题 Is there a way to loop over the "history" object in javascript to find a specific page in the history? 回答1: Security reasons - no, you can not dump the history of the browser (with javascript) I mean you can not do for(i=0;i<window.history.length; i++) { alert(window.history[i]); } However I don't have good explanation why history.go(n); is ok 回答2: No, because it would you the ability to basically spy on the web history of anyone visiting your site (you could send this information to your

Can you use hash navigation without affecting history?

谁都会走 提交于 2019-11-28 03:03:18
I'm afraid it might be impossible but is there a way to change the hash value of a URL without leaving an entry in the browser's history and without reloading ? Or do the equivalent? As far as specifics go, I was developing some basic hash navigation along the lines of: //hash nav -- works with js-tabs var getHash = window.location.hash; var hashPref = "tab-"; function useHash(newHash) { //set js-tab according to hash newHash = newHash.replace('#'+hashPref, ''); $("#tabs li a[href='"+ newHash +"']").click(); } function setHash(newHash) { //set hash according to js-tab window.location.hash =

Managing Browser History in Ajax

試著忘記壹切 提交于 2019-11-28 02:32:03
问题 I am using ajax in my site. If a user enters a query and select a category, i will updates the page with result with ajax. I also update the url with hash value which shows query and category seperated by an & . What I want is that when the browser back button is pressed I want to display the previous result without reloading. What i am getting is that the URL has the previous values, but the result is not updating. 回答1: You can use : "Yahoo! UI Library: Browser History Manager" 来源: https:/

How do I use window.history in JavaScript?

流过昼夜 提交于 2019-11-28 01:57:15
I found a lot of questions about this on Stack Overflow, but they were all very specific about certain parts. I did find this question whose answers provide some nice references, but they don't actually explain how it all works, and their examples hardly do anything. I want to know more about how it all works together, and I want to use vanilla JavaScript. (Also, many of the answers on other questions are years old.) GETTING STARTED First of all, you can remove the window part. Just history works fine. But before we get into how everything works together, we need to know what we can use.

How do I determine whether I am going “forward” or “backward” through my History in GWT?

一世执手 提交于 2019-11-28 01:20:19
问题 I am looking at History and History JavaDocs in GWT and I notice that there is no way to tell whether the forward or backward button was pressed (either pragmatically or by the user). The "button press" is handled by your registered addValueChangeHandler, but the only thing passed to the handler is a string on your history stack. There is no indication as to whether the "History" is moving "back" (using the back arrow button) or "forward" (using the right arrow button). Is there any way to

Does Android support window.location.replace or any equivalent?

假如想象 提交于 2019-11-28 00:32:51
It seems that the Android browser doesn't properly implement window.location.replace . In most browsers, calling window.location.replace will replace the current URL with the URL passed to it. When the user navigates somewhere else then clicks back, they'll be returned to the URL that was passed to window.location.replace , rather than the URL that they were at before window.location.replace was called. The Android browser doesn't seem to implement this properly. In the Android browser, the user will be directed back to the original URL rather than the one passed to window.location.replace .

history.back(); doesn't trigger $(document).ready();

白昼怎懂夜的黑 提交于 2019-11-27 23:10:37
问题 I have a webpage that use $(document).ready() to build the interface. Then the user can go to a child page, and to go back to the original page he can press the browser's "previous" button or a "Return" button in the page which triggers a history.back(); . Back on the original page, $(document).ready() is not triggered so the page is missing informations. is there a way to trigger it automatically like if it was a "real load"? thank you! edit placing an alert in it, the alert is poped but

Can we get browser history by using Javascript?

橙三吉。 提交于 2019-11-27 22:57:30
Can we get browser history for my site with Javascript ? I can see some of old posts and threads talking about that... but those approaches didn't work for me. Is it possible or not and how? You can make use of History object of javascript to do that The history property has the return value as history object, which is an array of history items having details of the URL's visited from within that window. Also, note that the History object is a JavaScript object and not an HTML DOM object. syntax of history property of Window Object: window.history Riz If you are looking a way to navigate in