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
Les classes abstraites c’est fini (et c’est la faute à TDD)
PDF
Mathématiques et Python
PDF
rails-migrations_1
PDF
VISUAL CHEAT SHEET
PDF
Html5 cheat-sheet
PDF
git-cheat-sheet
PDF
JavaScript Libraries Overview
PDF
Jslunch6
Les classes abstraites c’est fini (et c’est la faute à TDD)
Mathématiques et Python
rails-migrations_1
VISUAL CHEAT SHEET
Html5 cheat-sheet
git-cheat-sheet
JavaScript Libraries Overview
Jslunch6

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

PDF
Xsl Tand X Path Quick Reference
PDF
JavaScript and AJAX
PDF
XSLT 1 and XPath Quick Reference (from mulberrytech.com)
PDF
tutorial5
PDF
tutorial5
PDF
JSTLQuick Reference
PPTX
PDF
FluentDom
KEY
An in-depth look at jQuery
PDF
Schema Structures Qr 2
PDF
Actionsscript Cheat Sheet Letter
PDF
MUp Early Preview V6
PDF
Actionsscript cheat sheet_letter
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
Xsl Tand X Path Quick Reference
JavaScript and AJAX
XSLT 1 and XPath Quick Reference (from mulberrytech.com)
tutorial5
tutorial5
JSTLQuick Reference
FluentDom
An in-depth look at jQuery
Schema Structures Qr 2
Actionsscript Cheat Sheet Letter
MUp Early Preview V6
Actionsscript cheat sheet_letter
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
Ad

More from brecke (9)

PDF
jQuery-Visual-Cheat-Sheet-1.4.2
PDF
jQuery Visual Cheat Sheet (by WOORK)_1
PDF
Rails_3_Cheat_Sheets
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
javascript-cheat-sheet-v1_1
PDF
git-cheat-sheet
jQuery-Visual-Cheat-Sheet-1.4.2
jQuery Visual Cheat Sheet (by WOORK)_1
Rails_3_Cheat_Sheets
JSP Syntax_1
jQuery1.2.cheatsheet.v1.0_1
jQuery-Visual-Cheat-Sheet-1.4.2
jQuery Visual Cheat Sheet (by WOORK)_1
javascript-cheat-sheet-v1_1
git-cheat-sheet
Ad

Recently uploaded (20)

PPTX
sap open course for s4hana steps from ECC to s4
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Spectroscopy.pptx food analysis technology
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
sap open course for s4hana steps from ECC to s4
MIND Revenue Release Quarter 2 2025 Press Release
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Chapter 3 Spatial Domain Image Processing.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
Empathic Computing: Creating Shared Understanding
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Review of recent advances in non-invasive hemoglobin estimation
The Rise and Fall of 3GPP – Time for a Sabbatical?
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Unlocking AI with Model Context Protocol (MCP)
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Programs and apps: productivity, graphics, security and other tools
Encapsulation_ Review paper, used for researhc scholars
MYSQL Presentation for SQL database connectivity
Spectroscopy.pptx food analysis technology
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.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