09-03-2012 05:12 AM
Is there any code for the check the number of Browser history is available.
And I want to get the Name or link of the page From Browser History.
I want to check if the link is available in the Browser History, so that I extract that link from Browser History for Webworks Smartphone.
Solved! Go to Solution.
09-03-2012 08:22 AM
Can Any One Help me to find the solution of the above problem!!!!!
09-03-2012 08:28 AM
you can check "window.history.length" for history count.
var historyCount= window.history.length;
09-03-2012 08:31 AM
check this link for History related function.
09-03-2012 08:37 AM
Thanks BrajeshSanodiya for your reply.
I have got through the link provided by you.
But my problem is when I restart my App.
It is showing the "window.history.length" is 1 only.
I think the Device clean the history if I close the App.
Is there any way to save the Browser History and extract from the History.
09-04-2012 12:56 AM
History is based on session so it will be available only as long as the app is running. Accessing the history isn't really possible, you can get the history.length, or use history['0'] to get an entry, but in most browsers the last one will not work due to browser security.