DEV Community

Tomopteris
Tomopteris

Posted on

Objects

What is an object?

– An entity within the browser or web page.

What is a property?

– Defining characteristics of an object.

What is a method?

– An action that can be performed on an object.

Which are the different ways of referencing objects?

Tag name

– document.getElementsByTagName(tag)

Class name

– document.getElementsByClassName(class)

Name

– document.getElementsByName(name)

ID

- document.getElementById(id)

Top comments (0)