I would take it a little differently if I were you. Change the text link when the page loads, rather than a click. I will give an example in jQuery, but it can be easily done in javascript (although jQuery is better)
$(function() { $('a[href$="url="]')
and write your HTML as follows:
<a href="http://example.com/submit.php?url=">...</a>
the advantages of this is that people can see what they click on (href is already installed) and it removes javascript from your HTML.
All this suggests that you are using PHP ... why not add it on the server side?
nickf Nov 06 '08 at 6:24 2008-11-06 06:24
source share