NoScript and javascript.void(0)

Ask for help about NoScript, no registration needed to post
Halmin

NoScript and javascript.void(0)

Post 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?
Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20100101 Firefox/14.0.1
Guest

Re: NoScript and javascript.void(0)

Post by Guest »

Anyone?
Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20100101 Firefox/15.0.1
User avatar
therube
Ambassador
Posts: 7991
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: NoScript and javascript.void(0)

Post 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)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0 SeaMonkey/2.14a2
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3377
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: NoScript and javascript.void(0)

Post 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.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0.1
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: NoScript and javascript.void(0)

Post 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?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:15.0.1) Gecko/20100101 Firefox/15.0.1
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3377
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: NoScript and javascript.void(0)

Post 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.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
world is a vampire and browsers are zombies and users are the virus
Post Reply