Q:

What is a JavaScript Void 0?

A:

In JavaScript, a Void 0 is a programming tool that is used to prevent a browser from loading a new page. It is used in connection with a JavaScript Alert.

Know More

Full Answer

Web browsers will evaluate the uniform resource locator, or URL, in a line of code and attempt to load the page. A JavaScript void operator returns a value of null and so the browser does not load the new page. In this way, a scripter can force the keyword to be treated as an expression and not as a declaration in cases where the JavaScript statement is used as a URL that returns a value. Undefined can be used in place of void unless it has been otherwise assigned.

Learn more in Computer Programming

Related Questions

  • Q:

    What is jQuery?

    A:

    JQuery is a JavaScript framework designed to make it much easier for coders to use JavaScript on their website. It takes the functionality of many lines of JavaScript code and turns them into functions that users can call up using a single line of code.

    Full Answer >
    Filed Under:
  • Q:

    What is JavaScript?

    A:

    JavaScript is a dynamic scripting language developed by Netscape to enable web developers to create interactive sites. JavaScript support is integrated into all the major web browsers including Safari, Firefox and Internet Explorer.

    Full Answer >
    Filed Under:
  • Q:

    What is nonprocedural language?

    A:

    Nonprocedural language is that in which a programmer can focus more on the code's conclusion and therefore doesn't have to use such common programming languages as JavaScript or C++. This makes nonprocedural language somewhat easier to learn for those just beginning to get into coding and programming.

    Full Answer >
    Filed Under:
  • Q:

    How do you enable JavaScript?

    A:

    To enable JavaScript, open your web browser and click Tools, Internet Options, then the Security tab. Click the Internet zone icon, then the Custom Level button, scrolling down to the Scripting section. Click Enable under Active Scripting. Click OK to save and exit these Security Settings and the Internet Options dialogue box, then click the Refresh button to run the scripts.

    Full Answer >
    Filed Under:

Explore