Simple timing
<HTML>
Another simple timing
<HTML>
Timing events in an infinite loop
<HTML>
Timing events in an infinite loop with a stop button
<HTML>
Clocks and clocks created using timing events
<HTML>
Instance of the created object
<HTML> <body> <SCRIPT type = "text/JavaScript"> personobj = new object () personobj. firstname = "John" personobj. lastname = "Adams" personobj. age = 35personobj. eyecolor = "black" document. write (personobj. the age of firstname + "is" + personobj. age + "years old. ") </SCRIPT> </body>
Create an object Template
<HTML> <body> <SCRIPT type = "text/JavaScript"> function person (firstname, lastname, age, eyecolor) {This. firstname = firstnamethis. lastname = lastnamethis. age = agethis. eyecolor = eyecolor} myfather = new person ("John", "Adams", 35, "black") document. write (myfather. the firstname + "Age is" + myfather. age + "years old. ") </SCRIPT> </body>