RSS Feed

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:

 javascript:void(0)

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>
Respond to “javascript:void(0)”
  1. pouyana says:

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

  2. Marcia Smith says:

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

  3. stillconfused says:

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

    • Johal says:

      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

  4. Daniel Memenode says:

    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!

  5. Davey says:

    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.

  6. Daniel Memenode says:

    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.

  7. Ike says:

    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

  8. Daniel Memenode says:

    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.

  9. anna kepetzi says:

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

     

  10. 格雷 says:

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

  11. Victoria says:

    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

  12. Karl says:

    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? 

  13. Karl says:

    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.

  14. Rose says:

    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   :(

Leave a Reply

Post your comments and questions below, but please follow our commenting guidelines.


Path: Home > Programming > Java > javascript:void(0)