Connecting...

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
For more information, please see full course syllabus of JavaScript
JavaScript Objects
Lecture Description
In this lesson our instructor talks about objects, methods and properties. He talks about string object, test objects, array object, Boolean object, date object, form object, math object, number object, number object, string object, window object, and document object. He then talks about regular expression object s and syntax. He finishes with ten complete example videos.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
Since this lesson is not free, only the preview will appear on your website.
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
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"> </td>
<td><button type="Button" onclick="FindMaxMin()">
Click to calculate</button></td>
</tr>
</table>
</form>
</body>
</html>
2 answers
Last reply by: Jerry Wu
Mon Aug 10, 2020 10:53 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>