PDA

Click to See Complete Forum and Search --> : Any way to record a javascript link?


NetFXMedia
Mar 26th, 2001, 08:25 PM
Is there any way to record a link that when clicked calls up some javascript.

Eg, here is the link. (javascript would be in header)

<a href="javascript:addbookmark()">Bookmark</a>

Is there anyway possible to log that action (into a db or txt file), with a php script? With javascript?

gwdash
Mar 26th, 2001, 09:09 PM
it would be complicated, but what i would do is to call a PHP/ASP script to proccess the result and redirect back to the original page(could launch in it's own window and then destroy the window), or you could develop a recursive page (ASP/PHP)(calls itself with a QueryString attached to it that tells it to log the count) and then display the data.

Just some ideas?