Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of JavaScript
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Bookmark and Share
Lecture Comments (3)

0 answers

Post by Jorge Guerrero on April 1, 2012

Here's the HTML part for Min Max Values:
</head>
<body onload="SetFocus()">
<form name="SimpleForm">
<table>
<tr>
<td width="25%" align="right">Enter first number:</td>
<td><input name="FirstInput" type="text"></td>
</tr>
<tr>
<td width="25%" align="right">Enter second number:</td>
<td><input name="SecondInput" type="text"></td>
</tr>
<tr>
<td width="25%" align="right">Enter third number:</td>
<td><input name="ThirdInput" type="text"></td>
</tr>
<tr>
<td width="25%" align="right">&nbsp;</td>
<td><button type="Button" onclick="FindMaxMin()">
Click to calculate</button></td>
</tr>
</table>
</form>
</body>
</html>

1 answer

Last reply by: Barbara Lengyel
Tue Apr 9, 2013 6:59 AM

Post by Jorge Guerrero on April 1, 2012

For the Web Page Clock: Here is the complete code, folks:

<html>
<head>
<script type="text/javascript">
function startTime()
{
var today=new Date();
var h=today.getHours();
var m=today.getMinutes();
var s=today.getSeconds();
h=checkTime(h);
m=checkTime(m);
s=checkTime(s);
document.getElementById('txt').innerHTML=h+":"+m+":"+s;
t=setTimeout('startTime()',500);
}

function checkTime(i)
{
if (i<10)
{
i="0" + i;
}
return i;
}
</script>
</head>

<body onload="startTime()">
<div id="txt"></div>
</body>
</html>

Objects

  • Objects are similar to Nouns, as Methods are to Verbs, and Properties are to Adjectives
  • Common JavaScript objects are strings, numbers, dates, and arrays
  • Regular Expression objects are used to locate and manipulate patterns of characters

Objects

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Definitions 0:08
    • Objects
    • Methods
    • Properties
  • Example 1:22
    • String Object
    • Test Object
  • Common JavaScript Objects 3:10
    • Array Object
    • Boolean Object
    • Date Object
    • Form Object
    • Math Object
    • Number object
    • String Object
    • Window Object
    • Document Object
  • Regular Expression Objects 5:55
    • Regular Expression Syntax
  • Example 1: Object Method 7:04
  • Example 2: Object Property 8:41
  • Example 3: String Object Styles 9:09
  • Example 4: String Match Method 11:00
  • Example 5: String Replace Method 12:45
  • Example 6: Web Page Clock 14:05
  • Example 7: Math Object Absolute Value 15:25
  • Example 8: Minimum and Maximum Values 17:05
  • Example 9: Form Objects 18:47
  • Example 10: Regular Expressions 23:22