> Programming Languages > Javascript
Various Topics Home | Disclaimer | Report Adult Posts

Various Topics on Javascript



Javascript - "Change link URL on c****" in Programming Languages


Old 04-08-2004   #1
.... ..m..
 
Default Change link URL on c****

Hi!

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
 
Old 04-08-2004   #2
..cha.. ..nt..
 
Default Re: Change link URL on c****

On Thu, 08 Apr 2004 01:15:17 +0200, Mike Mimic <ppagee@yahoo.com> wrote:

> 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)
 

Thread Tools
Display Modes





Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0