Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #20299
| From | "Jukka K. Korpela" <jkorpela@cs.tut.fi> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Button doing work as a hot link ?? |
| Date | 2013-06-15 11:53 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <kph9pa$abr$1@dont-email.me> (permalink) |
| References | <b222a4F6mg4U1@mid.individual.net> |
2013-06-15 5:36, Mel Smith wrote:
> I'll be placing a 'hot link' on my developing page.
This looks a bit like trolling.
> But, I wish it to be a *button* (rather than an anchor <a >) whereby I
> can capture the 'click', then do my 'click-counting' and other work, then
> send the hot-link on its way to fruition.
And you don't think you can have an onclick event in <a>? Or do you want
to prevent Google & competitors from following the link, at any cost?
You could use a <span> element with onclick, or you could use a <form>
with <input type=button> or <button type=button>, but do you fear that
Google might some was recognize the construct as a link and follow it?
> btw, I've now forgotten where I found this code :(
This is compatible with the trolling hypothesis.
> var linkobj = getobj("ihotlink") ;
Where might getobj() be defined? What does the console say?
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-14 20:36 -0600
Re: Button doing work as a hot link ?? Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-15 06:05 +0000
Re: Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-15 08:53 -0600
Re: Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-15 10:35 -0600
Re: Button doing work as a hot link ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-06-15 11:53 +0300
Re: Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-15 09:10 -0600
Re: Button doing work as a hot link ?? "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-06-15 19:23 +0300
Re: Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-15 13:09 -0600
Re: Button doing work as a hot link ?? JJ <duh@nah.meh> - 2013-06-15 17:49 +0700
Re: Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-06-15 09:27 -0600
Re: Button doing work as a hot link ?? "ViLco" <villiber@tin.it> - 2013-07-09 10:24 +0200
Re: Button doing work as a hot link ?? "Mel Smith" <med_cutout_syntel@aol.com> - 2013-07-09 09:50 -0600
Re: Button doing work as a hot link ?? "ViLco" <villiber@tin.it> - 2013-07-10 13:39 +0200
csiph-web