Global Index
HTML5 JS API Index > Browser Tutorials & Specs


Implemented by Window, WorkerGlobalScope

This type groups properties and / or operations together for documentation purposes and does not have an explicit JavaScript representation.

DOMStringatob(DOMString atob)
btoa(DOMString btoa)
The btoa() method must throw an InvalidCharacterError exception if the method's first argument contains any character whose code point is greater than U+00FF. Otherwise, the user agent must convert that argument to a sequence of octets whose nth octet is the eight-bit representation of the code point of the nth character of the argument, and then must apply the base64 algorithm to that sequence of octets, and return the result.