CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   JavaScript programming (http://www.codingforums.com/forumdisplay.php?f=2)
-   -   How to work with Browser History (http://www.codingforums.com/showthread.php?t=286858)

leorajendra 02-01-2013 06:33 AM

How to work with Browser History
 
I've to get return true or false value with javascript function.


if user goback to history then it should return true else return false value only. How to do it

Philip M 02-01-2013 07:18 AM

Quote:

Originally Posted by leorajendra (Post 1310299)
I've to get return true or false value with javascript function.


if user goback to history then it should return true else return false value only. How to do it

Not possible. JavaScript has no capability to access the client's operating system or the Windows registry, or alter the default behaviour of the browser.


All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

felgall 02-01-2013 08:28 PM

The only thing JavaScript can do using history is to jump back or forward by a specified number of entries (provided that there are that many entries in the specified direction or the call will fail).

There is no way to tell what entries there are in history, how many entries there are in history, or where in the list the current page is.


All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.