mozilla

Revision 478351 of Web API reference

  • Revision slug: Web/Reference/API
  • Revision title: Web API reference
  • Revision id: 478351
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

The Web offers a wide variety of APIs to perform various useful tasks. These can be accessed using JavaScript code, and let you do anything from make minor adjustments to any {{domxref("window")}} or {{domxref("element")}}, to generating intricate graphical and audio effects using APIs such as WebGL and Web Audio.

Each individual interface across all APIs is listed in the index and more precis

Document Object Model
The DOM is an API allowing to manipulate, that is access and modify the current document. It allows to manipulate its {{domxref("Node")}} and {{domxref("Element")}}. Both HTML and SVG have extended it to manipulate their specific elements.
Devices APIs
This set of APIs allows to access the different hardware features available to Web pages and applications. E.g. Ambient Light Sensor API, Battery Status API, Geolocation API, Pointer Lock API, Proximity API, Device Orientation API, Screen Orientation API, Vibration API.
Communication APIs
These APIs let Web pages and applications to communicate with other pages or devices. E.g. Network Information API, Web Notifications, Simple Push API.
Data management APIs
The user data can be stored and managed using this set of devices. E.g. FileHandle API, IndexedDB.

In addition to these APIs available to any Web site or apps, Mozilla extended this set with a set of more powerful APIs but only available to priviledged applications, or even only to certified applications.

Priviledged APIs
A priviledged application is an installed apps who has been given by the user a set of specific rights: TCP Socket API, Contacts API, Device Storage API, Browser API,
Certified APIs
A certified application is a low-level application performing a critical operation of an operating system like Firefox OS. Less priviledged application interact with these applications using Web Activities: Bluetooth API, Mobile Connection API, Network Stats API, Telephony, WebSMS, WiFi Information API, Camera API, Power Management API, Settings API, Idle API, Permissions API, Time/Clock API.
{{LandingPageListSubpagesPlus({"community": { "name": "Web API", "listname": "dev-webapi", "newsgroup": "mozilla.dev.webapi", "channel": "webapi" }, "related": { "articles": ["\/en-US\/docs\/Web\/API"] } } )}}

Revision Source

<p><span class="seoSummary">The Web offers a wide variety of APIs to perform various useful tasks. These can be accessed using JavaScript code, and let you do anything from make minor adjustments to any {{domxref("window")}} or {{domxref("element")}}, to generating intricate graphical and audio effects using APIs such as <a href="/en-US/docs/Web/WebGL">WebGL</a> and <a href="/en-US/docs/Web_Audio_API">Web Audio</a>.</span></p>
<p>Each individual interface across all APIs is listed in the <a href="/en-US/docs/Web/API">index</a> and more precis</p>
<div class="cleared topicpage-table">
  <div class="section">
    <dl>
      <dt>
        <a href="/en-US/docs/DOM">Document Object Model</a></dt>
      <dd>
        The DOM is an API allowing to manipulate, that is access and modify the current document. It allows to manipulate its {{domxref("Node")}} and {{domxref("Element")}}. Both HTML and SVG have extended it to manipulate their specific elements.</dd>
      <dt>
        Devices APIs</dt>
      <dd>
        This set of APIs allows to access the different hardware features available to Web pages and applications. E.g. <a href="/en-US/docs/WebAPI/Using_Light_Events">Ambient Light Sensor API</a>, <a href="/en-US/docs/WebAPI/Battery_Status" title="WebAPI/Battery_Status">Battery Status API</a>, <a href="/en-US/docs/Using_geolocation" title="Using_geolocation">Geolocation API</a>, <a href="/en-US/docs/WebAPI/Pointer_Lock" title="API/Pointer_Lock_API">Pointer Lock API</a>, <a href="/en-US/docs/WebAPI/Proximity" title="WebAPI/Proximity">Proximity API</a>, <a href="/en-US/docs/WebAPI/Detecting_device_orientation" title="WebAPI/Detecting_device_orientation">Device Orientation API</a>, <a href="/en-US/docs/WebAPI/Managing_screen_orientation" title="WebAPI/Detecting_device_orientation">Screen Orientation API</a>, <a href="/en-US/docs/WebAPI/Vibration" title="WebAPI/WebBluetooth">Vibration API</a>.</dd>
      <dt>
        Communication APIs</dt>
      <dd>
        These APIs let Web pages and applications to communicate with other pages or devices. E.g. <a href="/en-US/docs/WebAPI/Network_Information" title="WebAPI/Network_Information">Network Information API</a>, <a href="/en-US/docs/WebAPI/Using_Web_Notifications" title="/en-US/docs/WebAPI/Using_Web_Notifications">Web Notifications</a>, <a href="/en-US/docs/WebAPI/Simple_Push" title="WebAPI/Push_Notifications">Simple Push API</a>.</dd>
      <dt id="Data_management_APIs" name="Data_management_APIs">
        Data management APIs</dt>
      <dd>
        The user data can be stored and managed using this set of devices. E.g. <a href="/en-US/docs/WebAPI/FileHandle_API" title="WebAPI/FileHandle_API">FileHandle API</a>, <a href="/en-US/docs/IndexedDB" title="IndexedDB">IndexedDB</a>.</dd>
    </dl>
    <p>In addition to these APIs available to any Web site or apps, Mozilla extended this set with a set of more powerful APIs but only available to priviledged applications, or even only to certified applications.</p>
    <dl>
      <dt>
        Priviledged APIs</dt>
      <dd>
        A priviledged application is an installed apps who has been given by the user a set of specific rights: <a href="/en-US/docs/WebAPI/TCP_Socket" title="WebAPI/TCP_Socket">TCP Socket API</a>, <a href="/en-US/docs/WebAPI/Contacts" title="WebAPI/Contacts">Contacts API</a>, <a href="/en-US/docs/WebAPI/Device_Storage_API" title="WebAPI/Device_Storage_API">Device Storage API</a>, <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Browser API</a>,</dd>
      <dt>
        Certified APIs</dt>
      <dd>
        A certified application is a low-level application performing a critical operation of an operating system like Firefox OS. Less priviledged application interact with these applications using <a href="/en-US/docs/WebAPI/Web_Activities" title="WebAPI/Web_Activities">Web Activities</a>:<a href="/en-US/docs/WebAPI/WebBluetooth" title="WebAPI/WebBluetooth"> Bluetooth API</a>, <a href="/en-US/docs/WebAPI/Mobile_Connection" title="WebAPI/Mobile_Connection">Mobile Connection API</a>, <a href="/en-US/docs/WebAPI/Network_Stats" title="WebAPI/Network_Stats">Network Stats API</a>, <a href="/en-US/docs/WebAPI/WebTelephony" title="WebAPI/WebTelephony">Telephony</a>, <a href="/en-US/docs/WebAPI/WebSMS" title="WebAPI/WebSMS">WebSMS</a>, <a href="/en-US/docs/WebAPI/WiFi_Information" title="WebAPI/WiFi_Information">WiFi Information API</a>, <a href="/en-US/docs/WebAPI/Camera" title="WebAPI/Camera">Camera API</a>, <a href="/en-US/docs/WebAPI/Power_Management" title="WebAPI/Power_Management">Power Management API</a>, <a href="/en-US/docs/WebAPI/Settings" title="WebAPI/Settings">Settings API</a>, <a href="/en-US/docs/WebAPI/Idle" title="WebAPI/Device_Storage_API">Idle API</a>, <a href="/en-US/docs/WebAPI/Permissions" title="WebAPI/Permissions">Permissions API</a>, <a href="/en-US/docs/WebAPI/Time_and_Clock" title="WebAPI/Time_and_Clock">Time/Clock API</a>.</dd>
    </dl>
  </div>
  <div class="section">
    {{LandingPageListSubpagesPlus({"community": { "name": "Web API", "listname": "dev-webapi", "newsgroup": "mozilla.dev.webapi", "channel": "webapi" }, "related": { "articles": ["\/en-US\/docs\/Web\/API"] } } )}}</div>
</div>
Revert to this revision