Re: java and activex problems
"Ant" <[email protected]> Sun, 9 Apr 2006 16:39:07 +0100
| Newsgroups | gmane.mail.spam.spamcop.geeks |
|---|---|
| Organization | SpamCop |
| Message-ID | <[email protected]> |
"anon" wrote: > As you see the void(0) leads to 'on click open...' so it 'should' > function but doesn't. Below is a complete one-line hypertext link from the source you provided: > <a href="javascript:void(0)" onfocus="this.blur();" > onclick="openSlideShow2(0, 'en');"><img src="9%20months_files/image.png" > alt="Start Slideshow" id="id4" style="border: none; height: 36px; left: > 546px; position: absolute; top: 32px; width: 119px; z-index: 1; " /></a> As I said, the "void" does nothing. It is being used here to make a valid hypertext link (href=). The real action takes place in the "onclick" keyword where the function "openSlideShow2" is run. If they weren't using "onfocus", the link could have started like this: <a href="javascript:(openSlideShow2(0, 'en'))"> and the onclick would have been redundant. When you copy the link, only what the "href=" is pointing to is relevant as far as the browser is concerned. Normally it would be a URL, but in this case it is a null function call. The fuctionality of the whole link is in the other parts. The page should work with "Active Scripting" set to "Prompt" if you ok it. I don't know what's happening in the function "openSlideShow2" because it wasn't in the source sample. Maybe it's relevant, or maybe not. Check that other relevant Internet security zone settings are not set to "Disable".