Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

Getting Specific Element Properties

Name 	Description
tagName 	    A string representing the tag name of the element, such as P, DIV or H1
id 	            The value of the id attribute on the element, as a string
className 	    The value of the class attribute on the element, as a string
classList 	    The list of classes in the class attribute as an array-like structure which can be iterated
attributes 	    A NamedNodeMap of all the element's attributes and their values. It can be iterated
clientHeight 	A Number representing the inner height of the element
clientWidth 	A Number representing the inner width of the element
innerHTML 	    The content inside the element including HTML markup
outerHTML 	    Same as innerHTML, except it includes the element itself as well
Comment

PREVIOUS NEXT
Code Example
Javascript :: js hello 
Javascript :: loader on map function in react js 
Javascript :: react native red Triangle Left 
Javascript :: close worker 
Javascript :: stiches js keyframes 
Javascript :: react keydown event listener freecodecamp 
Javascript :: how to print huge numbers in a variable alert javascript 
Javascript :: icon with label in react native 
Javascript :: sempole reguler expretion 
Javascript :: space station json file 
Javascript :: change candle color react highcharts 
Javascript :: this 
Javascript :: create 24 hours array like 00:00 to 23:30 
Javascript :: javascript remove files name starts with 
Javascript :: linked list distance between two nodes 
Javascript :: google sheets array formula ignore blank cells 
Javascript :: document.elementsFromPoint 
Javascript :: get twitter username from string javascript 
Javascript :: parent.containts js 
Javascript :: cantsee auto complete for node jsmodules in vs code 
Javascript :: form validation jflutter 
Javascript :: javascript convert to java 
Javascript :: random height fallling object in js 
Javascript :: everything be true freecodecamp 
Javascript :: birth day quote 
Javascript :: java home sdk error 
Javascript :: socket io across two different ports 
Javascript :: persian calender for react-native 
Javascript :: event on trible click in js 
Javascript :: js how to find not unic values in array 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =