Interface WindowOrWorkerGlobalScope

All Known Implementing Classes:
DedicatedWorkerGlobalScope, Window

public interface WindowOrWorkerGlobalScope
The WindowOrWorkerGlobalScope mixin describes several features common to the Window and WorkerGlobalScope.
  • Method Summary

    Modifier and Type
    Method
    Description
    atob(String encodedData)
    Decodes a string of data which has been encoded using base-64 encoding.
    btoa(String stringToEncode)
    Creates a base-64 encoded ASCII string from a string of binary data.
  • Method Details

    • atob

      String atob(String encodedData)
      Decodes a string of data which has been encoded using base-64 encoding.
      Parameters:
      encodedData - the encoded string
      Returns:
      the decoded value
    • btoa

      String btoa(String stringToEncode)
      Creates a base-64 encoded ASCII string from a string of binary data.
      Parameters:
      stringToEncode - string to encode
      Returns:
      the encoded string