EchoEcho.Com Homepage
Web Hosting - As Reliable As It Gets!
   Home > References > JavaScript > Object Object


 Tutorials 
 D-Zine Articles 
 Online Tools 
 Free Resources 
 References 
 Quiz 
 Hosting 

















  JavaScript Objects :
OBJECT OBJECT








Core ObjectNNIEECMA
 Object Provides functionality common to all JavaScript objects.2+4+ECMA 1
 
MethodsNNIEECMA
 toLocaleString() String value of an object, in local value format.n/a3+ECMA 1
 toSource() Object literal representing the specified object.4+n/an/a
 toString() Returns a string representing the object.2+3+ECMA 1
 unwatch() Removes a watchpoint set with the watch method.3+n/an/a
 valueOf() Primitive value of the specified object.2+4+ECMA 1
 watch() Runs a function when specific property is assigned value.3+n/an/a
 
PropertiesNNIEECMA
 constructor Reference to the function that created an object.2+4+ECMA 1
 prototype Creates a new method for Number objects2+4+ECMA 1





 Object Core object 
 Provides functionality common to all JavaScript objects.
 
Syntax:

  objectName=new Object([value]);
 
Browser support:
 Microsoft Internet Explorer: 4+
 Netscape Browser: 2+
 
Implementations:
 JavaScript 1.0 (by Netscape)
 JScript 3 (by Microsoft)
 ECMA Script 1 (ECMA Standard)
 
 
Example:

Example :

  point = new Object();
  point.x=17;
  point.y=22;
 
  alert(point.x+' : '+point.y)
 
  // Would alert: 17 : 22



















DEVELOPER TIP!
FACT:
None of the leading search engines will crawl pages based on framesets.
TIP:
Offer visitors a non-framed option.
If for nothing else: to make sure your pages get listed with the search engines!





     "Better Than Books - As Easy As It Gets!"


On EchoEcho: D-Zine Articles | Tutorials | Online Tools | Free Resources | References | Quiz | HostingAbout EchoEcho