userDefined object (Object/DOM)

You can define your own objects in several different ways.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape version - 6.0
JavaScript syntax:-myObject = new Function()
-myObject = new Object()

Aside from the ways in which you can create custom objects with your own constructor functions, you can also create your own HTML tags to make custom document elements.

Objects are instantiated from HTML tags and assume a class name from the HTML tag names in the document. So you can invent your own tags that become objects in the document model in MSIE, and inherit some basic capabilities from the environment. Netscape version introduces this functionality at version 6.0.

See also:Object object