Page 1 of 1

NoScript and javascript.void(0)

Posted: Sat Sep 29, 2012 12:46 pm
by Halmin
Hi,

Is there a way to tell noscript not to block javascript.void(0) links, or at least let the user know which script is disabling it? For the latter, it might not be possible even when I allow all the scripts. Is there a way to allow it on certain trusted sites?

Re: NoScript and javascript.void(0)

Posted: Sun Sep 30, 2012 2:24 am
by Guest
Anyone?

Re: NoScript and javascript.void(0)

Posted: Sun Sep 30, 2012 1:40 pm
by therube
URL where this occurs?

It would seem, so long as you have allowed the domain where it happens, the javascript: void(0) should be doing its job.

JavaScript Void(0)

Re: NoScript and javascript.void(0)

Posted: Mon Oct 01, 2012 11:27 pm
by GµårÐïåñ
Without an actual url, nothing to test and reply to you about. However, just what you have provided, therube is correct, requires the page that handles that function to be allowed scripting. Simple as that unless we have something more to work with.

Re: NoScript and javascript.void(0)

Posted: Wed Oct 03, 2012 5:46 am
by Tom T.
The site linked by therube explains in very clear, non-tech language what the js.void(0) does, and why it is used. It is worth a few minutes to read it.

In short, one must double-click such links. Have you tried that on links which show the javascript.void(0) message in the lower left of the browser?

Re: NoScript and javascript.void(0)

Posted: Thu Oct 04, 2012 12:12 am
by GµårÐïåñ
Its not just double clicking, it just so happens the example shown is using the ondoubleclick method, it can be onclick, onload, etc, etc. Its simply a function with nothing to return, aka, a module. Usually, not always, a function refers to a piece of code that returns something, but a module does something. However, in JS, anytime you see VOID, it GENERALLY means, it won't return anything, just does something. So this is a common syntax used by many coding schemes to just trigger something to happen and they can be tied to DOM methods or manually created events or methods, or just a simple piece of embedded code, there is no hard and fast rule for it. As I said, give us a damn link, we'll tell you why it doesn't work. Simple as that, all the guessing is just a waste of energy.