Q:

What is a JavaScript Void 0?

A:

Quick Answer

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 about Computer Programming

Related Questions

  • Q:

    What is JavaScript used for?

    A:

    JavaScript is a programming language that can be used in PDF documents, desktop widgets or site-specific browsers, but it’s typically applied in Web pages. A static Web page uses HTML to mark up the content and CSS to define its appearance. JavaScript adds dynamic elements and behavior to a Web page, which allows users to interact with it without having to load a new page after making a specific request.

    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:

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

Explore