javascript:void(0)

javascript:void(0) is an error message that occasionally appears in a web browser when there is a problem loading a JavaScript from a webpage.

Possible causes (and solutions) for the javascript:void(0) error message include:

Problem Possible Resolution(s)
A popup blocker blocking the JavaScript Disable the popup blocker
A malfunctioning web proxy Disable the web proxy if possible
An improperly written JavaScript Webmaster must rewrite the JavaScript
JavaScript is not enabled Enable JavaScript
Web browser JavaScript implementation is broken Switch or upgrade the web browser

Programming with javascript:void(0)

javascript:void(0) is used with the href attribute of the HTML <a> tag. Usually, clicking on a hyperlink reloads or redirects to another webpage. This may not be feasible every time. Many times, clicking a hyperlink requires performing some client side script operation instead of reloading or redirecting. This can be achieved by placing “javascript:void(0)” in the tag’s href attribute.

Example

<a href="JavaScript:void(0);"ondblclick="alert('Good example!')">Example</a>

Rate this article:

javascript:void(0), 0 / 5 (0 votes)
Last updated .

Follow Will.Spencer on
  • pouyana

    Hi , how can repair this error in google crome when appears?

  • Marcia Smith

    Thank God I found you! This was driving me NUTS. (Javascript void 0)

  • stillconfused

    :sad: :sigh: im still confused… HELP!

    • Johal

      The problem is most likely caused by the javascript that the website developer has attached to the link, and not a bug in the browser.
      So ask the creator of the website to fix the error

  • Daniel Memenode

    What are you confused about? Details please! So many people here just fail to provide any details and expect to be helped. We’re not telepathic and psychic yet!

  • Davey

    The problem occurs with Googlechrome. OS is Windows XP Pro SP3 and since burglars stole my best laptop all I have is a Toshiba 8200 which is a Pentium 3 850MHz machine with 512MB of memory. (the choosy b*****d burglars didn’t want Pentium 1, 2 or 3 machines or a Kodak camera they only took the best items) On Google maps and particularly Google Earth all is well until the cursor is moved to “print” or “send”. As soon as this is done “javascript void 0″ pops up. I cannot tell whether the fault is at my end or whether one has to pay £s£s£s to print the pictures. Another way is Print Screen, open a blank document in a word processor, then press Control V. This never fails but the image is rather small.

  • Daniel Memenode

    Originally posted by Davey: “The problem occurs with Googlechrome. OS is Windows XP Pro SP3 and since burglars stole my best laptop all I have is a Toshiba 8200 which is a Pentium 3 850MHz machine with 512MB of memory. (the choosy b*****d burglars didn’t want Pentium 1, 2 or 3 machines or a Kodak camera they only took the best items) On Google maps and particularly Google Earth all is well until the cursor is moved to “print” or “send”. As soon as this is done “javascript void 0″ pops up. I cannot tell whether the fault is at my end or whether one has to pay £s£s£s to print the pictures. Another way is Print Screen, open a blank document in a word processor, then press Control V. This never fails but the image is rather small.”

    I’m sorry for your losses. That laptop should still be able to run javascript fine though. The problem should be elsewhere. What version of Chrome browser do you have? Maybe try upgrading or try Firefox and see what happens. If it works fine in Firefox then it’s some issues with Chrome.

  • Ike

    hello, i noticed a mistake in your example: you forgot to close off the example link, it should appear in the code as “Example”

    instead, it shows as text on the page:
    Examplea>

    please correct this problem, unless it was deliberate to show the code to users. thx

  • Daniel Memenode

    Originally posted by Ike: “hello, i noticed a mistake in your example: you forgot to close off the example link, it should appear in the code as “Example”

    instead, it shows as text on the page:
    Examplea>

    please correct this problem, unless it was deliberate to show the code to users. thx”

    I corrected it, thank you.

    • graham

      this happends in photobucket how do i tell ‘ them ‘ to fix the problem if its not my browser !

  • anna kepetzi

    I can’t open the programme aula virtual del instituto cervantes please help me !

     

  • 格雷

    i play the game what it says to javascript void (0) how can I do? ?who can Teach me

    • cornica

      Im getting this error did all its says to contact website,but its still doing it.the website is pogo.com cant play anything its says to report to website webmaster but there is no contact info.just directs you to ea sports

  • Victoria

    I keep getting the error message javascriptvoid 0 whenever I try to access my refworks account. I have never had issues before and thought that it may be related to a recent download I did for google chrome. I’ve uninstalled java and reinstalled it, checked my settings and scripting is enabled for java, and I unistalled my recent google chrome download, but nothing has helped. I’m in the process of writing an important paper and I really need access to my account, Any help would be appreciated! Thanks, V

  • Karl

    I simple am looking at a page here that is so busy with bullshit that I can, literally see, NO SOLUTION to the javascript void problem to be found!!!!!!!!!!!

    I cannot follow what I cannot find? 

  • Karl

    I see an extra window, which I cannot remove, smack dab in the middle, covering up the information I think you mean to convey. How the hell do I get rid of that extra window. Plus, adds keep popping up. I feel like I am in an arcade and the drugs are not helping. This site is too busy to be a help.

  • Rose

    I have no idea how I’m supposed to ask MyYearbook to fix it since you have to login to talk to the site administrators, I’m trying to press the “Sign in with Facebook” and I can’t login otherwise cuz it only lets you login with Facebook after you sign up with facebook   :(

  • JAY

    JAVA VOID O PROBLEM

  • JAY

    Thank God I found you! This was driving me NUTS. (Javascript void 0)

  • don

    im gettina javascrpitvoid0 error on pogo.com can logged but cannot do anything else on site,cannot find a contact webmaster to get fixed as i tried all troubshooting ..please help.

  • Sylvia Haik

    I get the error message Javascript (0) Void only when I access certain sites that appear to have been recently modified.