Majstro-Aplikaĵoj

Company info Home page

JavaScript code examples - Table of contents

  • Operators
    • !=
    • !==
    • %
    • %=
    • &
    • &&
    • &=
    • ()
    • *
    • *=
    • + (unary plus)
    • + (addition)
    • + (string concatenation)
    • ++
    • += (addition with assignment)
    • += (string concatenation with assignment)
    • ,
    • - (unary minus)
    • - (subtraction)
    • --
    • -=
    • /
    • /=
    • .
    • <
    • <<
    • <<=
    • <=
    • =
    • ==
    • ===
    • >
    • >=
    • >>
    • >>=
    • >>>
    • >>>=
    • ?:
    • delete
    • in
    • instanceof
    • new
    • typeof
    • void
    • []
    • ^
    • ^=
    • |
    • |=
    • ||
    • ~
  • Methods and properties
    • decodeURI(string)
    • decodeURIComponent(string)
    • encodeURI(string)
    • encodeURIComponent(string)
    • escape(string)
    • eval(code)
    • Infinity
    • isFinite(x)
    • isNaN(x)
    • NaN
    • parseFloat(string)
    • parseInt(string)
    • undefined
    • unescape(string)
    • Array
      • ()
      • (size)
      • (value, ...)
      • concat(value, ...)
      • join()
      • join(separator)
      • length
      • pop()
      • push(value, ...)
      • reverse()
      • shift()
      • slice(start)
      • slice(start, end)
      • sort()
      • sort(function)
      • toLocaleString()
      • toString()
      • unshift(value, ...)
    • Function
      • (arg1, arg2, ..., argN, body)
      • length
      • prototype
      • toString()
    • Object
      • ()
      • constructor
    • String
      • charAt(position)
      • charCodeAt(position)
      • concat(text)
      • fromCharCode(code1, code2, ...,codeN)
      • indexOf(text)
      • indexOf(text, start)
      • lastIndexOf(text)
      • lastIndexOf(text, start)
      • length
      • match(regexp)
      • slice(from)
      • slice(from, to)
      • split(delimiter)
      • split(delimiter, limit)
      • substring(from)
      • substring(from, to)
    • window
      • alert(message)
      • blur()
      • clearInterval(intervalId)
      • close()
      • closed
      • confirm(message)
      • defaultStatus
      • document
      • frames[]
      • history
      • location
      • Math
      • name
      • navigator
      • opener
      • parent
      • prompt(message)
      • screen
      • self
      • setTimeout(code, delay)
      • status
      • top
      • window
    • window.document
      • anchors[]
      • getElementById(id)
      • getElementsByTagName(name)
      • lastModified
      • title
      • URL
      • write(value, ...)
      • writeln(value, ...)
    • window.Math
      • abs(number)
      • acos(number)
      • asin(number)
      • atan(number)
      • ceil(number)
      • cos(angle)
      • E
      • exp(number)
      • floor(number)
      • LN10
      • LN2
      • LOG10E
      • LOG2E
      • PI
      • pow(number1, number2)
      • random()
      • round(number)
      • sin(angle)
      • sqrt(number)
      • SQRT1_2
      • SQRT2
      • tan(angle)
  • Miscellaneous useful examples
    • Simulating a static variable