Home     Blog

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>
VN:F [1.9.17_1161]
Rating: 8.5/10 (4 votes cast)
javascript:void(0), 8.5 out of 10 based on 4 ratings
Follow Will.Spencer on

Comments (20)

 

  1. pouyana says:

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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  2. Marcia Smith says:

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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  3. stillconfused says:

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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    • 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

      VA:F [1.9.17_1161]
      Rating: 0.0/5 (0 votes cast)
  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!

    VN:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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.

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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.

    VN:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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.

    VN:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    • graham says:

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

      VA:F [1.9.17_1161]
      Rating: 0.0/5 (0 votes cast)
  9. anna kepetzi says:

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

     

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  10. 格雷 says:

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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
    • cornica says:

      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

      VA:F [1.9.17_1161]
      Rating: 0.0/5 (0 votes cast)
  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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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? 

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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.

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  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   :(

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  15. JAY says:

    JAVA VOID O PROBLEM

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  16. JAY says:

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

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)
  17. don says:

    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.

    VA:F [1.9.17_1161]
    Rating: 0.0/5 (0 votes cast)

Leave a Reply

Related Posts

  • JavaScript

    JavaScript is a programming language and interactive web platform that allows users to interact with a webpage in a variety of different ways. For example, JavaScript can be used to create interactive drop-down navigation menus in a webpage, insert expandable content into forms or tables, and create interactive slideshows. JavaScript can also be used to [...]...


  • How to Make JavaScript Links

    Many webmasters want to make JavaScript links instead of HTML links because they believe this will “conserve PR”. This is an unresolved argument among search engine optimization specialists. A normal HTML link looks like this: <a href=”http://www.tech-faq.com”>Tech FAQ</a> And works like this: Tech FAQ A JavaScript link looks like this: <a href=”javascript:var handle=window.open(‘http://www.tech-faq.com’)”>Tech FAQ</a> And [...]...


  • JavaScript Redirect

    A JavaScript redirect can be used to redirect a visitor from one webpage to another. This could be your site moving to a new domain. Some download sites have a time delay during redirections, which is basically the JavaScript redirect in action. If you are having some external servers mirror your site for you, you [...]...


  • Java vs. JavaScript

    Java and JavaScript are two different programming languages which have similar names and share similar syntax. Java is a complete object oriented programming language which is designed to create applets or stand-alone applications. JavaScript is a more simple programming language which is designed to create scripts for use on the World Wide Web. Java bytecode [...]...


  • JavaScript Tutorials

    JavaScript Tutorials Learn the basics of Javascript with TechFaq! Here you will find the most comprehensive list of JavaScript tutorials and resources along with questions and answers. Date Difference Tutorial This tutorial will show you how to calculate the difference between 2 dates in Javascript. Here, you will also learn how to use dates and [...]...