JS Programmers, "I'm a server-side coder PHP, Postgres etc...
My question; Given the following anchor
<a href="http://www.somesite.com/somefile.html">link text</a>
Is there a way to code an onClick event to call a script and pass the
href URL and link text?
That is; We'd like to put an identical piece of JS code into each
anchor tag essentially to have the anchors, when clicked call one
script which does logging of the URL and link text before doing a
redirect.
With no working knowledge in JS, only some past background reading, my
assumption is that something like this may be valid;
onClick="load(loggingScript.php?url=anchor.url&tex t=anchor.text)"
Please advise.
TIA
--
-------------------------------------------------------------------------------
Jerry Sievers 305 854-3001 (home) WWW ECommerce Consultant
305 321-1144 (mobile http://www.JerrySievers.com/