Click to See Complete Forum and Search --> : Determining if the current page is the last page in history


ellas
08-04-2003, 10:51 PM
Is it possible to determine if the current page is the last page in history. I want to know when a client comes in and leaves a site.

Khalid Ali
08-05-2003, 08:51 AM
In my knowlwdge(which could be tainted abit this early in the morning..:D ),you can retrieve any value from the history object in a format that you could do any processing on it,So I seriously doubt you can do what you are thinking....

ellas
08-05-2003, 09:14 AM
Did you say I can retrive or can't retrive what i am looking for from histroy?

Khalid Ali
08-05-2003, 10:51 AM
you can use few methods and properties in history object. but to actually manipulate the results in history you will need (extra permissions) in NS.

Here is a link for details

http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/history.html

ellas
08-05-2003, 11:23 AM
Are you sure that that information is Current! The page is dated 1999....

I believe most of what they say isn't current.

Khalid Ali
08-05-2003, 11:33 AM
What are you trying to say here?
seems like you are too smart for this forum,....

ellas
08-05-2003, 11:48 AM
Please don't miss understand me. I have spent numerous hours (tresting and searching ) in trying to solve the problem and I have found that many javascript sites have information that seems to be outdated. (many don't post the date on their pages) I will state that I have almost completely given up on the Netscape browser because of numerous headackes I have incurred evthough I was one of their most propondent supporters.

Normally as a language matures, methods and functions are added. But because of the security issues (with the web) always arising, MSFT for instance has been blocking or changing methods almost to the point that they are becoming useless.

In all honestly the info you gave may still work with Netscape but my problem is I need a solution has the highest probability of working with all browsers.

Khalid Ali
08-05-2003, 01:06 PM
then you should refer to my first response..you can not manipulate history objects any values,you can use themas is. for e.g
you can go to a certain point in history array

history.go(-10)
tenth page back in history or 10 forward but if you want to retrieve the 10 th link using

history[10] you will not be able to do that..browser security....the answer is when it comes to history object..there is little you can do..rethink your logic.

ellas
08-05-2003, 01:49 PM
I am coming to the same conclusion as you just mentioned.

Thanks for all your help and good programming to you