JavaScript Web API

Web API

The Web API has methods and properties that can extend browser functionality.

Instance

const myArray = new Uint32Array(10);
crypto.getRandomValues(myArray);

Try It Yourself

Web API Reference Manual

Reference Manual Description
Console API Methods for accessing the browser's debugging console.
Fetch API Methods for obtaining data from the web server.
Fullscreen API Methods for handling HTML elements in full-screen mode.
Geolocation API Methods for allowing users to provide their location to the web application.
History API Methods for accessing the URL of the user's browser.
MediaQueryList API Methods for querying media (screen).
Storage API Methods for accessing session and local storage.
Validation API Methods for verifying HTML elements.

Other properties and methods

Property/Method Description
getRandomValues() Generate an array of random numbers.