Click to See Complete Forum and Search --> : Question


blvdbill
10-26-2003, 02:54 PM
Is there a script (javascript) that can track the link on your webpage. I would like to see which links on my page are being used. I know you can do this with a PHP script but I dont know PHP.

S1L3NC3
10-26-2003, 10:19 PM
PHP can do it because it stores the number of hits the links get in a database, because PHP is a language that is easily integrated with databases. Javascript can do no such thing.

There is really no long term memoery javascript could access to store that kind of information i dont think. The browser memory, but i dont know much about that. Maybe store the each hit in an off-directory text or .js file or sumthing.

A very primative version might be possible with a very very complex system of cookies and functions, but that amount of work would be wastefull and pointless for such a menial task.