SlideShare a Scribd company logo
1 of 1
Download to read offline
Methods                                                                                                   DOM Methods
              Object
                         JavaScript                                                                               Document
             toString
                                 Cheat Sheet                                                                      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
         setSeconds      open                 decodeURI
              setYear    print                decodeURIComponent
 toLocaleTimeString      setTimeout           encodeURI
                                              encodeURIComponent
                                              escape
                                              unescape
                                                                                                       Powered by WebmaisterPro
                                                                                                      Social Network For Webmasters

More Related Content

Viewers also liked

Viewers also liked (16)

Presentación webinar Google AMP y WordPress
Presentación webinar Google AMP y WordPressPresentación webinar Google AMP y WordPress
Presentación webinar Google AMP y WordPress
 
dispelling darkness ...
dispelling darkness ...dispelling darkness ...
dispelling darkness ...
 
Q 35 fr
Q 35 frQ 35 fr
Q 35 fr
 
El seat 600
El seat 600El seat 600
El seat 600
 
Art Perspectives (Nx Power Lite)
Art Perspectives (Nx Power Lite)Art Perspectives (Nx Power Lite)
Art Perspectives (Nx Power Lite)
 
Generation ¥ - RMB: the new global currency infographic
Generation ¥ - RMB: the new global currency infographicGeneration ¥ - RMB: the new global currency infographic
Generation ¥ - RMB: the new global currency infographic
 
El puercoespin
El puercoespinEl puercoespin
El puercoespin
 
Matriz de valoracion pid y aamtic
Matriz de valoracion pid y aamticMatriz de valoracion pid y aamtic
Matriz de valoracion pid y aamtic
 
秋玫姐演講
秋玫姐演講秋玫姐演講
秋玫姐演講
 
SlideShare - Where Next?
SlideShare - Where Next?SlideShare - Where Next?
SlideShare - Where Next?
 
統一日報<青年、学生、留学生座談>
統一日報<青年、学生、留学生座談>統一日報<青年、学生、留学生座談>
統一日報<青年、学生、留学生座談>
 
Verilog-HDL Tutorial (12)
Verilog-HDL Tutorial (12)Verilog-HDL Tutorial (12)
Verilog-HDL Tutorial (12)
 
Gluecon keynote
Gluecon keynoteGluecon keynote
Gluecon keynote
 
Digital IQ of Beauty & Skincare
Digital IQ of Beauty & SkincareDigital IQ of Beauty & Skincare
Digital IQ of Beauty & Skincare
 
Site Analysis PDSB
Site Analysis PDSBSite Analysis PDSB
Site Analysis PDSB
 
Evolution and Trauma in Corporate e-Learning @ ICERI 2014 Seville
Evolution and Trauma in Corporate e-Learning @ ICERI 2014 SevilleEvolution and Trauma in Corporate e-Learning @ ICERI 2014 Seville
Evolution and Trauma in Corporate e-Learning @ ICERI 2014 Seville
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Javascript Cheat Sheet

  • 1. Methods DOM Methods Object JavaScript Document toString Cheat Sheet 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 setSeconds open decodeURI setYear print decodeURIComponent toLocaleTimeString setTimeout encodeURI encodeURIComponent escape unescape Powered by WebmaisterPro Social Network For Webmasters