|
|||||
|
|
#1 |
|
|
I am trying to implement link c**** counter so that user can still bookmark the link (I rather see that c**** is not counted than user have "problems"). <a href="http://www.google.com/" onC****="javascript:do***ent.location.replace('htt p://www.mypage.com /cgi-bin/count?http://www.google.com/'); return false;">Google</a> I have tryed this and it works. But the problem is that it does not work on "open in new window" or "open in new tab" c**** on a link. Any ideas? Mike |
|
|
#2 |
|
|
> I am trying to implement link c**** counter so that user > can still bookmark the link (I rather see that c**** is > not counted than user have "problems"). > > <a href="http://www.google.com/" > onC****="javascript:do***ent.location.replace('htt p://www.mypage.com > /cgi-bin/count?http://www.google.com/'); return false;">Google</a> > > I have tryed this and it works. But the problem is that it > does not work on "open in new window" or "open in new tab" > c**** on a link. > > Any ideas? Use <a href="http://www.mypage.com/cgi-bin/count?http://www.google.com/" >Google</a> perhaps? When opening in a new window, browsers only use the href attribute (in my experience), and that attribute must only contain "standard" URIs (read: no "javascript:..."). Mike -- Michael Winter M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply) |