Re: java and activex problems
"Ant" <[email protected]> Sat, 8 Apr 2006 00:11:04 +0100
| Newsgroups | gmane.mail.spam.spamcop.geeks |
|---|---|
| Organization | SpamCop |
| Message-ID | <[email protected]> |
"anon" wrote: > When I click on a link where copy shortcut = javascript:void(0), nothing > happens and when I past the link into the address box and click on go - > nothing happens. The 'javascript:void(0)' just won't execute. As intended (see extract from documentation below). > Obviously this is due to some security setting recommended by M$. Apparently not, in this case. > I have my security setting (as suggested by MS) set so that the warning: > 'your security setting do not allow web sites to use activex controls > installed on your computer...' appears when I open a web site window. > > Clicking on this banner does not give the option of allowing THAT site to > use the activex controls - what settings will allow a happy medium? Set ActiveX to "Prompt". > Is there some setting which will protect my computer from bad things > executing and being able to click on java and javascript and activex > routines? Not really. Set ActiveX and Active Scripting to "Prompt". Put sites you trust in the trusted zone, where the settings can be different so that scripts will run. >From Netscape JavaScript documentation: <quote> The void operator is used in either of the following ways: 1. void (expression) 2. void expression The void operator specifies an expression to be evaluated without returning a value. expression is a JavaScript expression to evaluate. The parentheses surrounding the expression are optional, but it is good style to use them. You can use the void operator to specify an expression as a hypertext link. The expression is evaluated but is not loaded in place of the current document. The following code creates a hypertext link that does nothing when the user clicks it. When the user clicks the link, void(0) evaluates to undefined, which has no effect in JavaScript. <A HREF="javascript:void(0)">Click here to do nothing</A> The following code creates a hypertext link that submits a form when the user clicks it. <A HREF="javascript:void(document.form.submit())"> Click here to submit</A> </quote>