In this second part of our article on using JavaScript variables and functions to update your web pages automatically, we look at Strings, Functions and Alerts!
Built-In Functions JavaScript / Getting Started
To help with script programming, the JavaScript language provides many functions already built-in the browser. These functions are readily available and you can use them as you see fit. Learn the following builtin functions: the message box function and its options, conversion functions like: integer conversion, converting a string to an integer, conversion to a string, decimal conversion, precision conversion, conversion to fixed decimal and more.
Writing Your Own JavaScript Functions JavaScript / Getting Started
In this article we're going to focus on a programming concept--writing your own functions. Knowing how to write your own functions will improve almost any JavaScript you create. In fact, you'll see how custom-made functions can enhance several of the JavaScript tricks you've already learned.
Declaring Variables and Functions JavaScript / Getting Started
Now it's time to get into some really fun stuff. Yes, variables and functions. Don't worry, it's not as bad as it sounds.....let's start with declaring variables. You'll want to keep all of your variables in the HEAD section for now. Place the declarations between the SCRIPT tags inside the head section of your document.
Writing Classes in Javascript JavaScript / General Development
Wrtting classes in Javascript doesn't give full functionality of an object oriented language, but it atleast gives data hiding and encapsulation which are very useful specially when javascript is not a strongly typed language. It is very useful in cases when you need to handle multiple objects , instead of having arrays for all kinds of variables and then managing those arrays in methods you can just write a class to handle one object and then make many instances of that class. This also gives the namespace resolution to the variables so that you can avoid using global variables and still use variables across procedures.
Introduction to Functions JavaScript / Getting Started
A function is an assignment that JavaScript can take care of for you. It is a technique used to isolate a group of instructional code so that other parts of the application can depend on it to provide them with a reliable result. There are two main categories of functions you will be using in JavaScript: those that have already been created for you and those you create in your code.
Tutorial: Introduction to JavaScript JavaScript / Getting Started
JavaScript is an easy-to-learn programming language which can be built into Web pages, so that it executes from within the browser rather than on the web server. Intranets especially can leverage the power of JavaScript to create "smart" Web pages which can process data and interact with the user. In this introduction we concisely look at the main programming points of the JavaScript language.
Functions JavaScript / Getting Started
Sometimes instead of just adding your javascript to the page and having the browser perform the tasks as soon as the script is read, you might want your javascript to be performed only upon the detection of a certain event. A function is a block of code which can be called from any point in a script after it has been declared. It is basically a compartmentalized JavaScript designed to accomplish a single task.
Javascript Tutorial For Beginners JavaScript / Getting Started
In this tutorial, you will learn how to: Create JavaScript tags and attributes; Embed and include an external js file; Output text with "write" and "writeln" methods; Use other document object methods; Create mesage boxes; Use variables and set up conditions; Create functions; Use event handlers to link with other page or open a new window; Check forms and access form elements; Display date and time; Open and control a window; Deal with frames.
Variables and Operators Explained JavaScript / Getting Started
A JavaScript tutorial aimed at beginners, or intermediate users with a hangover who suddenly forget how to turn numbers into strings and increment their variables. Includes working code examples for comparison, logical, compacted and other operators.
Arrays JavaScript / Getting Started
Arrays are a fundamental part of most programming languages and scripts. Arrays are simply an ordered stack of data items. Each element of the array can store its own data, just like a variable, thus you can say arrays are collections of variables. Items can be added and removed from the array at any time, also their value can be changed easily. One other feature of the arrays, which is specific to JavaScript is that the elements in the array can be of different types.