Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 659167 of WindowBase64

  • Revision slug: Web/API/WindowBase64
  • Revision title: WindowBase64
  • Revision id: 659167
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{APIRef}}

The WindowBase64 interface contains utility methods to convert data to and from base64. There is no object of this type, though the context object, either the {{domxref("Window")}} for regular browsing scope, or the {{domxref("WorkerGlobalScope")}}  for workers, implements it.

Properties

This interface defines no property.

Methods

{{domxref("WindowBase64.atob()")}}
Decodes a string of data which has been encoded using base-64 encoding.
{{domxref("WindowBase64.btoa()")}}
Creates a base-64 encoded ASCII string from a string of binary data.

Specifications

 

Browser compatibility

 

See also

Revision Source

<p>{{APIRef}}</p>
<p>The <code><strong>WindowBase64</strong></code> interface contains utility methods to convert data to and from base64. There is no object of this type, though the context object, either the {{domxref("Window")}} for regular browsing scope, or the {{domxref("WorkerGlobalScope")}}&nbsp; for workers, implements it.</p>
<h2 id="Properties">Properties</h2>
<p><em>This interface defines no property.</em></p>
<h2 id="Methods">Methods</h2>
<dl>
 <dt>
  {{domxref("WindowBase64.atob()")}}</dt>
 <dd>
  Decodes a string of data which has been encoded using base-64 encoding.</dd>
 <dt>
  {{domxref("WindowBase64.btoa()")}}</dt>
 <dd>
  Creates a base-64 encoded ASCII string from a string of binary data.</dd>
</dl>
<h2 id="Specifications">Specifications</h2>
<p>&nbsp;</p>
<h2 id="Browser_compatibility">Browser compatibility</h2>
<p>&nbsp;</p>
<h2 id="See_also">See also</h2>
Revert to this revision