0% found this document useful (0 votes)
3 views

Js Methods

The document is a cheat sheet outlining various JavaScript methods and events, categorized into sections such as Array Methods, Date Methods, DOM Methods, and DOM Events. Each section provides a brief overview of the relevant methods and their functionalities, including accessing and modifying elements, as well as handling different types of events. This resource serves as a quick reference for developers looking to utilize JavaScript effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Js Methods

The document is a cheat sheet outlining various JavaScript methods and events, categorized into sections such as Array Methods, Date Methods, DOM Methods, and DOM Events. Each section provides a brief overview of the relevant methods and their functionalities, including accessing and modifying elements, as well as handling different types of events. This resource serves as a quick reference for developers looking to utilize JavaScript effectively.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Tech_sanku

5 Super Useful JS
CheatSheet

save swipe
post to know
Tech_sanku

save swipe
post to know
Tech_sanku

2.Array Methods

save swipe
post to know
Tech_sanku

3.Date Methods
Initialization

save swipe
post to know
Tech_sanku

Conversions

save swipe
post to know
Tech_sanku

Get Methods

Set Methods

save swipe
post to know
Tech_sanku

4.DOM Methods
Accessing Elements

Creating/Appending Elements

Modifying Elements

save swipe
post to know
Tech_sanku

Accessing Parent, Children, Siblings

Modifying Attributes

Modifying Element Classes

save swipe
post to know
Tech_sanku

5.DOM Events
Event Listeners

Keyboard Events Form Events


key is pressed down
blur element has lose focused
keydown
use modified value of <input>, <select>
keyup key is released change or<textarea>
element has received focus
focus

select text has been selected in an element

submit fires on <form> when submitted

reset fires on form is reset

save swipe
post to know
Tech_sanku

Mouse Events Window Events


resource was not fully loaded, but not due
click left mouse button click abort an error
error event occurs if resource failed to
dbclick left mouse button double click error load or can’t be used
pointing device button is pressed when document has finished loading
mousedown inside element load
mouse button released over an element
mouseup unload document has being unloaded

mouseover mouse button enter an element scroll document is scrolled

mousemove mouse pointer moves over on elememt resize window is resized

save swipe
post to know

You might also like