Interface JSGlobalFunctions

All Superinterfaces:
JSObjectFunctions
All Known Implementing Classes:
E4XGlobal, JSGlobal, Window

public interface JSGlobalFunctions extends JSObjectFunctions
  • Method Details

    • decodeURI

      JSString decodeURI(JSString uri)
      function decodeURI(uri) unescape characters in a URI.
      Parameters:
      uri - A string that contains an encoded URI or other text to be decoded.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • decodeURIComponent

      JSString decodeURIComponent(JSString s)
      function decodeURIComponent(s) unescape characters in a URI component.
      Parameters:
      s - A string that contains an encoded URI components or other text to be decoded.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • encodeURI

      JSString encodeURI(JSString uri)
      function encodeURI(uri) escape characters in a URI.
      Parameters:
      uri - A string that contains the URI or other text to be encoded.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • encodeURIComponent

      JSString encodeURIComponent(JSString s)
      function encodeURIComponent(s) escape characters in a URI Component.
      Parameters:
      s - A string that contains a portion of a URI or other text to be encoded.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • escape

      JSString escape(JSString s)
      function escape(s) encode a string.
      Parameters:
      s - A string to be "escaped" or encoded.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • eval

      JSObject eval(JSString code)
      function eval(code) execute JavaScript from a string.

      Example

      eval("2+5"); //Returns 7
      
      Parameters:
      code - A string that contains the JavaScript expression to be evaluated or the statements to be executed.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • isFinite

      JSBoolean isFinite(JSNumber n)
      function isFinite(n) determine whether a number is finite.
      Parameters:
      n - The number to be tested.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • isNaN

      JSBoolean isNaN(JSNumber n)
      function isNaN(n) check for not-a-number.

      Example

      isNaN(0); // => false
      isNaN(0/0); //=> true
      isNaN(parseInt("3")); //=> false
      isNaN(parseInt("hello")); //=> true
      isNaN("3"); //=> false
      isNaN("hello"); //=gt; true
      isNaN(true); //=> false
      isNaN(undefined); //=> true
      
      Parameters:
      n - The number to be tested.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • parseFloat

      JSString parseFloat(JSString s)
      function parseFloat(s) convert a string to a number.
      Parameters:
      s - The string to be parsed and converted to a number
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • parseInt

      JSString parseInt(JSString s, JSNumber radix)
      function parseInt(s, radix) convert a string to an integer.
      Parameters:
      s - The string to be parsed and converted to an integer
      radix - An optional integer argument that represents the radix (i.e. base) of the number to be parsed. If omitted or 0, the number is parsed in base 10.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also:
    • unescape

      JSString unescape(JSString s)
      function unescape(s) decode an escaped string.
      Parameters:
      s - A string to be "unescaped" or decoded.
      Since:
      Standard ECMA-262 3rd. Edition, Level 2 Document Object Model Core Definition.
      See Also: