Just about everything you will deal with is an object.
All objects have properties and methods .
A property is a variable that holds some piece of data about the object. It is always named by using the object name, a period, and the property name. As an example, the location object contains information about the current URL being displayed in a browser window. If you want to find out the exact URL, you refer to location.href . There are three ways to include JavaScript in a Web page.