Welcome to this JavaScript course.
JavaScript is ubiquitous on the World Wide Web. You can use JavaScript to make your Web pages more interactive, so that they react to a viewer's actions, and to give your Web pages some special visual effects.
JavaScript allows you to add additional features that a static HTML page can't provide without some script code.
The JavaScript lessons of this course are free and a good start for beginners, they offer the necessary elements to learn the JavaScript programming language and working with JS code.

• Useful questions and answers on Forum JavaScript -Ajax.

JavaScript Lessons

  1. Introduction to JavaScript
    - A brief introduction about JavaScript, a programming language used to create interactive webpages and web aplications.
  2. JavaScript Syntax
    - About JavaScript code and syntax. How to write and use a simple JS code in the HTML page and external file.
  3. Variables and Operators
    - Understading and using variables and operators, the basics of programming.
  4. JavaScript Operators
    - JavaScript Operators, arithmetics, logicals, for strings, for functions, conditional operator, operators precedence.
  5. Conditional statements if, else, switch
    - This chapter begins by introducing you to conditional statements: if, else and switch. You will discover what they are and why they are useful to you in scripts.
  6. For loops
    - The FOR loops: for ... in and for each ... in. Block of code that allows you to repeat a section of code a certain number of times.
  7. While loops
    - Using while loops and Do While in JavaScript.
  8. Alert, Confirm and Prompt
    - How to use Alert, Prompt and Confirm, JS predefined windows.
  9. Functions
    - Using functions, declaring and calling functions with or without parameters.
  10. Functions - scope, arguments and recursive
    - Different ways to declare a function. About variable scope, arguments, nested and recursive functions.
  11. Callback Functions
    - JavaScript lesson about callback functions. Passing function as argument to other function.
  12. JavaScript Strings
    - String object, creating and using strings in JavaScript. Properties and methods of the string object.
  13. JavaScript Arrays
    - Array object, creating and using Arrays. Properties and methods of the array object. Moving through Array's elements.
  14. Associative Arrays
    - Creating and using Associative Arrays in JS, traversing and accesing elements of the associative array.
  15. The Number and Math Objects
    - About the Number object. Perform various calculations and complex operations with the Math object. Properties and methods of the Number and Math objects.
  16. Date Object
    - JS Date object, set and get certain time values that you can use in your scripts. Properties and methods of the Date object.
  17. Global Object
    - About Global object. Properties and methods (functions) of the Global object and a sample script example.
  18. JSON syntax in JavaScript
    - Learn how to use JSON syntax, to create array and objects using JSON format.
  19. Convert JSON in JavaScript
    - Convert strings with data in JSON format to a JavaScript object, convert JS objects to JSON string.
  20. Window Object
    - An Introduction to the Window Object. Properties and methods of the Window object and some examples.
  21. Document Object - DOM
    - DOM, Document Object Model, accessing and using the DOM with JavaScript. Document object properties and methods.
  22. Document object and Forms
    - Document Object and Forms. How to access and change the data from input form fields using DOM hierarchy.
  23. navigator and history objects
    - Level one JS browser objects: navigator, history. Properties, methods and examples.
  24. location and screen objects
    - JavaScript course - Other JS browser objects: location, screen. Properties, methods and examples.
  25. anchor and link object
    - JS HTML DOM objects, anchor and link; represent an HTML hyperlin tag. Properties, methods and examples.
  26. Form, text, textarea, file objects
    - Properties, methods and events of the form object and some of its sub-objects: text, password, hidden, textarea and file.
  27. Buttons, Checkbox, Radio, Select, Option objects
    - Otfer form sub-objects: Buttons, Checkbox, Radio, Select, Option. Properties, methods and events of these JS objects.
  28. JavaScript Events
    - Adding events in the HTML page. Examples and a list with JS Events for window, mouse, form elements and keyboard.
  29. Register event handlers and Detect events
    - How to Register event handlers and Detect events in JS, addEventListener method.
  30. Image object
    - JS Image object. Creating simple image effects using properties and methods of the Image object, preloading images.
  31. Frame / IFrame object
    - Properties of the Frame and IFrame object. Accesing frame elements, frame navigation.
  32. Cookies
    - Using Cookies, creating, reading and deleting cookies. Working in JavaScript with data from cookie.
  33. Working with getElementById
    - Working with getElementById. How to use the getElementById DOM method to get and set data in the HTML document.
  34. Working with getElementsByTagName
    - Working with getElementsByTagName. How to use the getElementsByTagName JS DOM method with HTML tags..
  35. querySelector and querySelectorAll
    - querySelector() and querySelectorAll(), two JavaScript functions very useful when working with HTML elements in JS.
  36. createElement and insertBefore
    - Using createElement and insertBefore JavaScript methods to Create and to add HTML elements in the web page.
  37. JavaScript code and PHP
    - Learn how to combine JavaScript code with PHP, to create JS scripts that use server side data.
  38. Creating and using classes in JavaScript
    - This lesson shows how to create, and use classes in JavaScript, with own properties and methods.
  39. JavaScript Object Method Chaining
    - In this lesson you can learn how to call multiple JS object methods in a single instruction.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag can be used to create input text field in web page?
<form> <input> <div>
<input type="text" name="a_name" value="val" />
Which CSS property displays the text in a small-caps font?
display font-variant font-style
h3 {
  font-variant: small-caps;
}
What instruction displays a notice box with a message inside it, in JavaScript?
for() Date() alert()
var msg = "Visit CoursesWeb.net";
alert(msg);
Indicate the PHP code used to get the users IP.
$_SERVER["HTTP_USER_AGENT"] $_SERVER["REMOTE_ADDR"] $_GET[]
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
JavaScript Course - Free lessons

Last accessed pages

  1. Flash CS5 - ActionScript 3 Online Video Course and Tutorials (274)
  2. Extract a number of characters and words from string (178)
  3. Lessons Adobe Flash CS5 course (271)
  4. Adobe Flash Courses ActionScript 3 Tutorials (510)
  5. CSS Float and Clear (278)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (5261)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (5052)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (4821)
  4. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (4662)
  5. PHP Chat Script (4420)