SlideShare a Scribd company logo
Methods                                                                                                   DOM Methods


                          JavaScript
              Object                                                                                              Document
             toString                                                                                             clear
      toLocaleString                                                                                              createDocument
              valueOf                                                                                             createDocumentFragment
    hasOwnProperty                                                                                                createElement
       isPrototypeOf                                                                                              createEvent
propertyIsEnumerable     XMLHttpRequest                             REGULAR EXPRESSIONS - FORMAT                  createEventObject
                                                                                                                  createRange
                         Safari, Mozilla, Opera:                    Regular expressions in JavaScript take
               String                                                                                             createTextNode
               charAt        var req = new XMLHttpRequest();        the form:                                     getElementsByTagName
         charCodeAt      Internet Explorer:                         var RegEx = /pattern/modifiers;               getElementById
      fromCharCode           var req = new                                                                        write
               concat
                             ActiveXObject("Microsoft.XMLHTTP");    REGULAR EXPRESSIONS - MODIFIERS
             indexOf                                                                                              Node
         lastIndexOf                                                                                              addEventListener
     localeCompare       XMLHttpRequest Object Methods              /g        Global matching                     appendChild
               match                                                /i        Case insensitive                    attachEvent
              replace                                                                                             cloneNode
                         abort()                                    /s        Single line mode
               search                                                                                             createTextRange
                 slice   getAllResponseHeaders()                    /m        Multi line mode                     detachEvent
                 split   getResponseHeader(header)                                                                dispatchEvent
            substring    open(method, URL)                                                                        fireEvent
                                                                    REGULAR EXPRESSIONS - PATTERNS
               substr                                                                                             getAttributeNS
                         send(body)
        toLowerCase                                                                                               getAttributeNode
        toUpperCase               setRequestHeader(header, value)   ^            Start of string                  hasChildNodes
 toLocaleLowerCase                                                  $            End of string                    hasAttribute
 toLocaleUpperCase       XMLHttpRequest Object Properties           .            Any single character             hasAttributes
                                                                                                                  insertBefore
                                                                    (a|b)        a or b
              RegEx                                                                                               removeChild
                         onreadystatechange                         (...)        Group section                    removeEventListener
                 test
              match      readyState                                 [abc]        Item in range (a or b or c)      replaceChild
                exec     responseText                               [^abc]       Not in range (not a or b or c)   scrollIntoView
                         responseXML                                a?           Zero or one of a
               Array                                                                                              Form
                         status                                     a*           Zero or more of a                submit
              concat
                 join    statusText                                 a+           One or more of a
                push                                                a{3}         Exactly 3 of a                   DOM Collections
                 pop                                                                                              item
                         XMLHttpRequest readyState Values           a{3,}        3 or more of a
             reverse
                shift                                               a{3,6}     Between 3 and 6 of a               Range
                slice    0         Uninitiated                      !(pattern) "Not" prefix. Apply rule when      collapse
                 sort    1         Loading                                       URL does not match pattern.      createContextualFragment
               splice    2         Loaded                                                                         moveEnd
              unshift                                                                                             moveStart
                         3         Interactive                                                                    parentElement
                                                                    EVENT HANDLERS
            Number       4         Complete                                                                       select
             toFixed                                                onAbort                onMouseDown            setStartBefore
       toExponential
                         JAVASCRIPT IN HTML                         onBlur                 onMouseMove
          toPrecision                                                                                             Style
                                                                    onChange               onMouseOut             getPropertyValue
                         External JavaScript File
                Date                                                onClick                onMouseOver            setProperty
                          <script type="text/javascript"
                parse                                               onDblClick             onMouseUp
                          src="javascript.js"></script>
       toDateString                                                                                               Event
                         Inline JavaScript                          onDragDrop             onMove
       toTimeString                                                                                               initEvent
             getDate      <script type="text/javascript">           onError                onReset                preventDefault
              getDay       <!--                                     onFocus                onResize               stopPropagation
         getFullYear          // JavaScript Here                    onKeyDown              onSelect
            getHours       //-->                                                                                  XMLSerializer
                                                                    onKeyPress             onSubmit
     getMilliseconds                                                                                              serializeToString
                          </script>                                 onKeyUp                onUnload
         getMinutes
           getMonth                                                 onLoad                                        XMLHTTP
         getSeconds                                                                                               open
             getTime     Functions                                                                                send
 getTimezoneOffset                                                  FUNCTIONS AND METHODS
             getYear     Window               Built In                                                            XMLDOM
                         alert                eval                  A method is a type of function, associated
             setDate                                                                                              loadXML
            setHours     blur                 parseInt              with an object. A normal function is not
     setMilliseconds     clearTimeout         parseFloat            associated with an object.                    DOMParser
          setMinutes     close                isNaN                                                               parseFromString
           setMonth      focus                isFinite
                         open                 decodeURI                         Available free from
         setSeconds
              setYear    print                decodeURIComponent                 AddedBytes.com
 toLocaleTimeString      setTimeout           encodeURI
                                              encodeURIComponent
                                              escape
                                              unescape

More Related Content

PDF
Actionsscript Cheat Sheet Letter
PDF
Actionsscript cheat sheet_letter
PPTX
Introduction to Client-Side Javascript
PDF
JSTLQuick Reference
PDF
AngularJS CheatSheet
PDF
Understanding JavaScript
PDF
Recommending Method Invocation Context Changes
PDF
Basic Mechanism of OOPL
Actionsscript Cheat Sheet Letter
Actionsscript cheat sheet_letter
Introduction to Client-Side Javascript
JSTLQuick Reference
AngularJS CheatSheet
Understanding JavaScript
Recommending Method Invocation Context Changes
Basic Mechanism of OOPL

What's hot (17)

PPTX
Improving Correctness with Types Kats Conf
PDF
Scala is java8.next()
PDF
A Re-Introduction to JavaScript
PPTX
Javascript
KEY
Know your Javascript Engine
PDF
Javascript basic course
PDF
Obvious Secrets of JavaScript
PDF
Beyond Java: 자바 8을 중심으로 본 자바의 혁신
PDF
Xsl Tand X Path Quick Reference
PDF
Functional Java 8 in everyday life
ODP
Object Equality in Scala
ODP
Scala traits training by Sanjeev Kumar @Kick Start Scala traits & Play, organ...
PDF
Taming Java Agents
PDF
57200143 flash-action-script-quickref
PPTX
Ajaxworld
PDF
C reference card
PDF
Cpp reference card
Improving Correctness with Types Kats Conf
Scala is java8.next()
A Re-Introduction to JavaScript
Javascript
Know your Javascript Engine
Javascript basic course
Obvious Secrets of JavaScript
Beyond Java: 자바 8을 중심으로 본 자바의 혁신
Xsl Tand X Path Quick Reference
Functional Java 8 in everyday life
Object Equality in Scala
Scala traits training by Sanjeev Kumar @Kick Start Scala traits & Play, organ...
Taming Java Agents
57200143 flash-action-script-quickref
Ajaxworld
C reference card
Cpp reference card
Ad

Viewers also liked (10)

PPTX
Adrian mora u7_t2_aa1
PPSX
Gestur Educativo
PDF
Monitor pais septiembre 2012 - reporte electoral (25-09-20
PPTX
Protocolo 1
DOCX
¡Sonrie!
PPTX
Bicentenario
PPTX
Planetas perdidos
DOCX
Hora nacional
PPTX
Proyecto de vida
PPTX
Feliz Día de la Madre
Adrian mora u7_t2_aa1
Gestur Educativo
Monitor pais septiembre 2012 - reporte electoral (25-09-20
Protocolo 1
¡Sonrie!
Bicentenario
Planetas perdidos
Hora nacional
Proyecto de vida
Feliz Día de la Madre
Ad

Similar to javascript-cheat-sheet-v1_1 (20)

PDF
JavaScript Libraries Overview
PDF
Jslunch6
PDF
JavaScript and AJAX
PDF
XSLT 1 and XPath Quick Reference (from mulberrytech.com)
PDF
tutorial5
PDF
tutorial5
PPTX
PDF
FluentDom
KEY
An in-depth look at jQuery
PDF
Schema Structures Qr 2
PDF
MUp Early Preview V6
PDF
Actionsscript cheat sheet_letter
PDF
Actionsscript cheat sheet_letter
PPTX
Html 5 Revolution
PDF
Making JavaScript Libraries More Approachable
PDF
Ajax и будущее Java Script
PDF
Custom YUI Widgets
PDF
Not your Grandma's XQuery
PPTX
Building High Performance Web Applications and Sites
PDF
this is ruby test
JavaScript Libraries Overview
Jslunch6
JavaScript and AJAX
XSLT 1 and XPath Quick Reference (from mulberrytech.com)
tutorial5
tutorial5
FluentDom
An in-depth look at jQuery
Schema Structures Qr 2
MUp Early Preview V6
Actionsscript cheat sheet_letter
Actionsscript cheat sheet_letter
Html 5 Revolution
Making JavaScript Libraries More Approachable
Ajax и будущее Java Script
Custom YUI Widgets
Not your Grandma's XQuery
Building High Performance Web Applications and Sites
this is ruby test

More from brecke (11)

PDF
jQuery-Visual-Cheat-Sheet-1.4.2
PDF
jQuery Visual Cheat Sheet (by WOORK)_1
PDF
javascript-cheat-sheet-v1_1
PDF
git-cheat-sheet
PDF
Rails_3_Cheat_Sheets
PDF
rails-migrations_1
PDF
JSP Syntax_1
PDF
jQuery1.2.cheatsheet.v1.0_1
PDF
jQuery-Visual-Cheat-Sheet-1.4.2
PDF
jQuery Visual Cheat Sheet (by WOORK)_1
PDF
git-cheat-sheet
jQuery-Visual-Cheat-Sheet-1.4.2
jQuery Visual Cheat Sheet (by WOORK)_1
javascript-cheat-sheet-v1_1
git-cheat-sheet
Rails_3_Cheat_Sheets
rails-migrations_1
JSP Syntax_1
jQuery1.2.cheatsheet.v1.0_1
jQuery-Visual-Cheat-Sheet-1.4.2
jQuery Visual Cheat Sheet (by WOORK)_1
git-cheat-sheet

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
20250228 LYD VKU AI Blended-Learning.pptx
Understanding_Digital_Forensics_Presentation.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Mobile App Security Testing_ A Comprehensive Guide.pdf
Network Security Unit 5.pdf for BCA BBA.
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Review of recent advances in non-invasive hemoglobin estimation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Spectroscopy.pptx food analysis technology
Chapter 3 Spatial Domain Image Processing.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Machine learning based COVID-19 study performance prediction
Digital-Transformation-Roadmap-for-Companies.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
Dropbox Q2 2025 Financial Results & Investor Presentation
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

javascript-cheat-sheet-v1_1

  • 1. Methods DOM Methods JavaScript Object Document toString clear toLocaleString createDocument valueOf createDocumentFragment hasOwnProperty createElement isPrototypeOf createEvent propertyIsEnumerable XMLHttpRequest REGULAR EXPRESSIONS - FORMAT createEventObject createRange Safari, Mozilla, Opera: Regular expressions in JavaScript take String createTextNode charAt var req = new XMLHttpRequest(); the form: getElementsByTagName charCodeAt Internet Explorer: var RegEx = /pattern/modifiers; getElementById fromCharCode var req = new write concat ActiveXObject("Microsoft.XMLHTTP"); REGULAR EXPRESSIONS - MODIFIERS indexOf Node lastIndexOf addEventListener localeCompare XMLHttpRequest Object Methods /g Global matching appendChild match /i Case insensitive attachEvent replace cloneNode abort() /s Single line mode search createTextRange slice getAllResponseHeaders() /m Multi line mode detachEvent split getResponseHeader(header) dispatchEvent substring open(method, URL) fireEvent REGULAR EXPRESSIONS - PATTERNS substr getAttributeNS send(body) toLowerCase getAttributeNode toUpperCase setRequestHeader(header, value) ^ Start of string hasChildNodes toLocaleLowerCase $ End of string hasAttribute toLocaleUpperCase XMLHttpRequest Object Properties . Any single character hasAttributes insertBefore (a|b) a or b RegEx removeChild onreadystatechange (...) Group section removeEventListener test match readyState [abc] Item in range (a or b or c) replaceChild exec responseText [^abc] Not in range (not a or b or c) scrollIntoView responseXML a? Zero or one of a Array Form status a* Zero or more of a submit concat join statusText a+ One or more of a push a{3} Exactly 3 of a DOM Collections pop item XMLHttpRequest readyState Values a{3,} 3 or more of a reverse shift a{3,6} Between 3 and 6 of a Range slice 0 Uninitiated !(pattern) "Not" prefix. Apply rule when collapse sort 1 Loading URL does not match pattern. createContextualFragment splice 2 Loaded moveEnd unshift moveStart 3 Interactive parentElement EVENT HANDLERS Number 4 Complete select toFixed onAbort onMouseDown setStartBefore toExponential JAVASCRIPT IN HTML onBlur onMouseMove toPrecision Style onChange onMouseOut getPropertyValue External JavaScript File Date onClick onMouseOver setProperty <script type="text/javascript" parse onDblClick onMouseUp src="javascript.js"></script> toDateString Event Inline JavaScript onDragDrop onMove toTimeString initEvent getDate <script type="text/javascript"> onError onReset preventDefault getDay <!-- onFocus onResize stopPropagation getFullYear // JavaScript Here onKeyDown onSelect getHours //--> XMLSerializer onKeyPress onSubmit getMilliseconds serializeToString </script> onKeyUp onUnload getMinutes getMonth onLoad XMLHTTP getSeconds open getTime Functions send getTimezoneOffset FUNCTIONS AND METHODS getYear Window Built In XMLDOM alert eval A method is a type of function, associated setDate loadXML setHours blur parseInt with an object. A normal function is not setMilliseconds clearTimeout parseFloat associated with an object. DOMParser setMinutes close isNaN parseFromString setMonth focus isFinite open decodeURI Available free from setSeconds setYear print decodeURIComponent AddedBytes.com toLocaleTimeString setTimeout encodeURI encodeURIComponent escape unescape