JAVASCRIPT
There are 6 basic of JavaScript
While Loop
User-defined Function
Working with Web Page Properties
- For Loop
- While Loop
- Do While Loop
- User-defined Function
- Working with Web Pages Properties
- Error Checking
For Loop
- Execute the same block of code according specified times.
- Another example of Loop
While Loop
- Execute the same block of code while a specific condition is true
- Another example While Loop
Do While Loop
- Execute the block of code at least once even the condition is false. because the code will be executed first before condition is tested. It will repeat the loop as long as the specified condition is true.
User-defined Function
Working with Web Page Properties
- May be you are not realized that you have used Web Pages properties (or Document properties) a few times.
- Example :
*document.write ( ) : to display information on the web page
- We have others like :
*document.bgColor : Example | Source Code
*document.fgColor : Example | Source Code
*document.lastModified : Example | Source Code
Error Checking
- Remember this example?
No comments:
Post a Comment