JavaScript with Objects, JavaScript Tutorial, Global Guide Line Technology.
Bookmark Bookmark: JavaScript with Objects, JavaScript Tutorial Forum | Blog |

      Home                    

Basic JavaScript Guide.
 JScript Introduction.            
 JScript Why?                       
 JScript Recognitions.          
 JScript onMouseover.         
 JScript with Buttons.           
 JScript Alerts.                     
 JScript Variables.               
 JScript Operators.               
 JScript Functions.               
 JScript Prompts.                 
 JScript Conditions.             
 JScript Validations.            
 JScript Confirmation Boxes.
 JScript Browser Detection.  
 JScript Redirection.            
 JScript on Links.                 
 JScript Switch.                    
 JScript Loops.                     
 JScript Events.                    
 JScript Exception Handling.
 JScript Reserve Characters. 
 JScript with Objects.
 JScript Math Object.           
 JScript using Dates.             
 JScript using String.            
 JScript using Arrays.            
 JScript Operations.              
 JScript Handling Cookies.   
 JScript in Mapping.             
 JScript Time Out.                
 JScript Summary.                

JavaScript Tutorial >> JavaScript with Objects.


     Back             Next     


What is JavaScript Object?

In Microsoft JavaScript, objects are, essentially, collections of some properties and methods. A method is a function that is a member of an JavaScript object, and a property is a value or set of some values in the form of an JavaScript array or object that is a member of an object. JavaScript supports three kinds of objects: intrinsic objects, objects we create, and browser objects, which are covered elsewhere soon.

Example of Date Object using JavaScript

<html>
<head>
<title>JavaScript Tutorial explaining JavaScript Objects</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
 function clockTick()
 {
  currentTime = new Date();
  document.clock_form.clock.value = " "+currentTime;
  document.clock_form.clock.blur();
  //this JavaScript setTimeOut() function will recall the
  //clockTick() after one second
  setTimeout("clockTick()", 1000);
 }
-->
</SCRIPT>
</head>

<body>
 <TABLE BORDER=0 >
  <TR>
   <TD>Time on your system is.</TD>
  </TR>
  <TR><TD>
   <FORM NAME="clock_form">
    <INPUT TYPE=TEXT NAME="clock" SIZE=25>
   </FORM>
  <SCRIPT LANGUAGE="JavaScript">
  <!--
    clockTick();
  -->
  </SCRIPT>
  </TD></TR>
 </TABLE>

</body>

</html>
 

Out put for above JavaScript Date object.

Time on your system is.

List of JavaScript Objects

JavaScript Object Name Object Description
JavaScript Boolean Object Creates a new Boolean value as True or False.
JavaScript Date Object Enables basic storage and retrieval of dates and times of visitor system.
JavaScript Dictionary Object Object that stores data as key, item in pairs.
JavaScript Drive Object JavaScript Drive Object provides access to the properties of a disk drive or network share.
JavaScript Enumerator Object JavaScript Enumerate Object enumerates the items in a collection.
JavaScript File Object JavaScript File Object provides access to the properties of a file.
JavaScript FileSystemObject Object JavaScript FileSystemObject provides access to a computer's file system.
JavaScript Folder Object JavaScript Folder Object provides access to the properties of any folder.
JavaScript Function Object By using JavaScript Function Object we can create a new function.
JavaScript Global Object Built-in JavaScript Global Object that collects global methods into one JavaScript Object.
JavaScript Math Object Intrinsic JavaScript Math object that provides basic math functions such as addition, multiplication, division, subtraction, etc.
JavaScript Number Object JavaScript Number Object is an representation of the number data type.
JavaScript Object Simple JavaScript Object provides functionality common to all JavaScript objects.
JavaScript RegExp Object JavaScript RegExp Object Stores information on regular expression pattern searches.
JavaScript Regular Expression Object JavaScript Regular Expression Object contains a regular expression pattern.
JavaScript String Object JavaScript String Object is an object representation of the string data type.
JavaScript TextStream Object JavaScript TextStream Object facilitates sequential access to any file saved on any location.
JavaScript VBArray Object JavaScript VBArray Object is an object representation of VBScript safe arrays.
JavaScript Collections JavaScript Collections Object is useful for collections of other objects.
JavaScript Array Object JavaScript Array Object provides support for creation of arrays of any data type.
 



     Back             Next     
 

JavaScript Screen Object Examples



JavaScript Date Object Functions and Properties Examples



JavaScript Math Object Functions and Properties Examples



JavaScript Boolean Object Examples



JavaScript Document Object Examples



[ About ] [ Contact ] [ Home ]
[ Links ] [ Site Map ] [ Services ] [ Privacy ]

Copyright 2005 -  2018 www.globalguideline.com All rights reserved. (Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher) 172 visitors are online now