|
JavaScript Tutorial |
| JavaScript is a programming language that can be included on web pages to make them more interactive. You can use it to check or modify the contents of forms, change images, open new windows and write dynamic page content. You can even use it with CSS to make DHTML (Dynamic HyperText Markup Language). This allows you to make parts of your web pages appear or disappear or move around on the page. JavaScripts only execute on the page(s) that are on your browser window at any set time. When the user stops viewing that page, any scripts that were running on it are immediately stopped. The only exception is a cookie, which can be used by many pages to pass information between them, even after the pages have been closed. |
| |
| Introduction |
| JavaScript is a scripting language widely used for client-side web development. It was the originating dialect of the ECMAScript standard. It is a dynamic, ... |
| Object Oriented Programming |
| What is Object Oriented Programming? Everyone that wants to program JavaScript should at least try reading the following section. If... |
| How to |
| The HTML tag is used to insert a JavaScript into an HTML page. How to Put a Java... |
| Where use JavaScript |
| Where should I put JavaScript? It depends. You have three choices. Since a web page can... |
| Variables |
| JavaScript Variables As with algebra, JavaScript variables are used to hold values or expressions. A variable can have a sho... |
| Operators |
| Operators are symbols that are used with variables to allow us to perform certain functions, such as adding, subtracting and etc. The table below lists the ... |
| if Statement |
| The if statement is used to make decisions in JavaScript. Boolean operators are also discussed in this lesson because they are used in along with if stateme... |
| Switch Statement |
| The switch statement of JavaScript The switch statement is basically an enhanced version of the "if-else" statement that ... |
| Functions |
| A function contains code that will be executed by an event or by a call to that function. You can however use a ... |
| for Loop |
| for Loop A repeat loop cycles though a group of statements until some condition is met. For instance, you can use a repeat loop to ... |
| while Loop |
| while and do-while Loops Two additional repeat loops are available in JavaScript. The while loop tests the supplied condition and ... |
| Popup Boxes |
| JavaScript Popup Boxes In JavaScript we can create three kinds of popup boxes: Alert box, Confirm box, and Prompt box. ... |
| break and continue Statements |
| There are two special statements that can be used inside loops 1. break statement: The break command will break the loop and ... |
| Events |
| JavaScript Events are items that transpire based on an action. A document event is the loading of an HTML document. A form event is the clicking on a button... |
| Date and Time Object |
| The Date object is useful when you want to display a date or use a timestamp in some sort of calculation. In Java, you can either make a Date object by supp... |
| Special Characters |
| In JavaScript you can add special characters to a text string by using the backslash sign. Insert Special Characters The bac... |
|
|