Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Button doing work as a hot link ?? Date: Fri, 14 Jun 2013 20:36:50 -0600 Lines: 44 Message-ID: X-Trace: individual.net tBdFnSGpC3FkFRR0JOEVkQLcNK9EWGIrMQkJaFmTsFcCjOvvVf Cancel-Lock: sha1:mwXirTlE11GxkZJFDbUwAb+btoQ= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:20297 Hi: I'll be placing a 'hot link' on my developing page. But, I wish it to be a *button* (rather than an anchor ) whereby I can capture the 'click', then do my 'click-counting' and other work, then send the hot-link on its way to fruition. I googled around and found that the following code that looks promising, but I couldn't get it to work. In IE8 nothing happened after the click. With Chrome and FF the screen cleared but went to sleep. Is there something obvious I'm doing wrong ? btw, I've now forgotten where I found this code :( Below is a stripped-down version of what I'm trying (& failing) to do. Thank you. -Mel Smith ************************************ HTML:
JS: function gohotlink() { var linkobj = getobj("ihotlink") ; linkobj.submit() ; } **********************************