Why Do I Get a Javascript Void Message?

Written by david gitonga
  • Share
  • Tweet
  • Share
  • Pin
  • Email
Why Do I Get a Javascript Void Message?
JavaScript Void Messages Can Pop Up for Various Reasons (young programmer image by Valentin Mosichev from Fotolia.com)

In JavaScript, a function called "JavaScript:void" will sometimes appear when an attempt to load a page is detected. This function is sometimes used by programmers for various reasons, for example, to update a sum in a web page without loading a new page. On the other hand, it can be used to alert a user that a certain piece of code cannot be executed for one reason or another.

Other People Are Reading

Pop Up Blocker

Since JavaScript is used to pop up web pages within other web pages, the JavaScript void message will appear when the pop up blocker is enabled.

Browser JavaScript Disabled

When the browser JavaScript functionality is disabled under the Security option, the JavaScript void message will appear when you try to access web features that use this functionality.

Missing URL

Sometimes, the JavaScript function may not have any URL placed during the coding process. In such a case, the browser pops up the JavaScript void message since it does not understand how to respond to missing links.

Disable Page Load

Sometimes it may not be necessary to reload a new page and programmers employ JavaScript void messages to cancel out unnecessary page loads. This is usually accompanied by a value that alerts a user the reason for the JavaScript void message alert.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.