JavaScript Tutorials are a great way to learn more coding strategies and principles of JavaScript. Below is our collection of articles and tutorials where you should be able to find the right JavaScript tutorial to suit your need. We have also included here some links to important areas of learning JavaScript to help you with your coding. Visit our JavaScript Scripts section for ready to use solutions to you website's needs and our JavaScript Blog for more great information.
| » | JavaScript
Tutorial New to JavaScript? Read this tutorial. |
» | PHP Syntax Learn the syntax of the JavaScript language. |
| » | JavaScript Functions Learn how to create JavaScript functions. |
» | JavaScript Variables Learn how to use variables in JavaScript. |
| » | JavaScript Cookies Learn how to use cookies in JavaScript |
» | JavaScript Objects Learn how to use objects in JavaScript |
JavaScript Debugging Techniques with Firebug
By Akash Mehta
Server side scripters have always had it easy; debugging a web application is simple, and IDEs make problems easy to identify. Client-side scripting with JavaScript, however, is a whole new ball game. In this tutorial, I'll identify the best basic and advanced JavaScript debugging techniques to help you take control of your JavaScript code.
Sunday, 20th April 2008
Striped Tables Using JavaScript
By Paul McCarthy
JavaScript can be incredibly useful when you need to automate repetitive tasks. In this article we'll implement a simple JavaScript function that will apply alternate striped rows to a table. We'll implement this technique using unobtrusive JavaScript.
Wednesday, 23rd January 2008
Opening PDFs in a New Window with JavaScript
By Paul McCarthy
Opening documents such as PDFs in a new window should be automated using JavaScript for the following reasons. Users will often close the web browser when a PDF is opened, mistakenly believing the document has been opened in Adobe Reader, the attribute historically used to open a new window, target, has been removed from the HTML 4.01 Strict specification (it's now deprecated), opening a new window is a behaviour and should be moved to the behavioural layer.
Wednesday, 23rd January 2008
Essential Javascript -- A Javascript Tutorial
By Patrick Hunlock
Javascript is an interpreted language with a C like syntax. While many people brush the language off as nothing more than a browser scripting language, it actually supports many advanced concepts such as object-oriented-programing, recursion, lambda, and closures. It's a very approachable language for the beginner that quickly scales to be as powerful a tool as your skills allow.
Sunday, 2nd December 2007
Submit Forms Conditionally using JavaScript
By SiteArticles.com
In the long-gone days of the early Internet, having a form on the website was tantamount to dabbling with "cutting-edge" technologies. Intricate Perl scripts and esoteric CGI scripts were required to process those forms and people used to suffer bouts of cold sweat whenever there manifested a need to use web forms.
Wednesday, 28th November 2007
How to Setup a Randomising Function
By Arbitrary Constant
A couple of sections on arbitrary constant used to utilise JavaScript in order to generate some random content for that pesky right column. This was done for two reasons: 1) to give the site a bit more depth and 2) to help me learn the basics of JavaScript. Now that both of these goals have been achieved, here is a guide detailing how it is done, which will hopefully prove useful to anyone new to this sort of thing.
Saturday, 17th November 2007
Introduction to JavaScript Tutorial
By Neil Williams
Javascript, despite the name, is not part of the Java programming language developed by Sun. It was originally introduced with Netscape Navigator v2.0 and was designed to create dynamic online pages, such as checking details on html forms before allowing the page to submit the data.
Friday, 9th November 2007
A Simple Image/Link Rollover in Javascript
By Benjamin Glenn
Your web site has been up and running for some time and while you are pleased with the results, you can't help but think that it needs a little bit more "something". Maybe you want to do something with the links, like add some pictures or a "rollover effect". Well, maybe not all the links; just one or two. There's a fine line between classy and gaudy.
Wednesday, 31st October 2007
Enumerating JavaScript Objects
By Dean Edwards
The global forEach function allows us to enumerate any object according to it’s type. If the object is array-like (has a length property) then we enumerate it like an array. All other objects are enumerated using the standard for var x in y mechanism.
Tuesday, 22nd August 2006
Javascript Diff Algorithm
By John Resig
This method takes two strings and calculates the differences in each. The final result is the 'newFile' marked up with HTML (to signify both deletions from the oldFile and additions to the newFile).
Tuesday, 22nd August 2006
Top 10 Custom JavaScript Functions Of All Time
By Dustin Diaz
If there was ever a universal common.js shared among the entire develosphere, you’d fine these ten (plus one bonus) functions. It would be the swiss army knife no developer would go into production without.
Tuesday, 22nd August 2006
Event Handlers and Callback Functions in JavaScript
By Sjoerd Visscher
In Higher Order Programming in Javascript I discussed the various ways of using functions as values. One particular trick in that document caught the attention of Dan Shappir, who pointed out to me: "your technique shows how JavaScript supported delegates all along, so this is not some great C#/.NET invention."
Saturday, 19th August 2006
Higher Order Programming in JavaScript
By Sjoerd Visscher
Higher Order Programming is the ability to use functions as values. So you can pass functions as arguments to other functions and functions can be the return value of other functions. This style of programming is mostly used in functional programming, but it can also be very useful in 'regular' object oriented programming.
Friday, 18th August 2006
Dynamic External JavaScript Files
By Will Bontrager
JavaScript can be embedded within the source code of a web page. Or, it can be in a file somewhere else and a special JavaScript tag used to insert the file when the web page is loaded into a browser.
Wednesday, 16th August 2006
An Introduction to DHTML
By Eddie Traversa
Think of DHTML as not a singular technology but a combination of three existing technologies glued together by the Document Object Model (DOM).
Saturday, 12th August 2006
Looping through form elements using JavaScript
By Amrit Hallan
An example of looping through all the form fields could be checking and unchecking all the check boxes present on a page (checking all the records to delete, or adding all the items to a shopping cart, for instance).
Friday, 9th December 2005
Converting to Lower Case and Upper Case in JavaScript
By Amrit Hallan
To convert a string to lower case and upper case in JavaScript.
Wednesday, 19th October 2005
Finding the Length of a String in JavaScript
By Amrit Hallan
When I used JavaScript to find the length of a string for the first time, I kept testing a function something like str.length(), whereas in JavaScript length is not a function, it is a property of the string object.
Wednesday, 19th October 2005
JavaScript Equivalent of PHP Explode Function
By Amrit Hallan
In PHP we can easily break a long string into smaller parts by using the explode() function of PHP. In runtime, this function works like this...
Tuesday, 18th October 2005
Restoring Form Field Values
By Will Bontrager
Once in a while we receive reports from web site owners that a visitor had to re-fill in all fields after submitting a form and then clicking the "back" button to correct information. All the fields go blank.
Monday, 26th September 2005
Things To Do With Textarea Form Fields
By Will Bontrager
The primary function of a textarea field is to accept input from a form user for the form processing script to do stuff with. You see their use in feedback forms, for example.
Monday, 26th September 2005
Search Engine Spider-Friendly JavaScript Content
By Will Bontrager
If you have syndicated content delivered with JavaScript, the content might not be indexed by the search engines.
Saturday, 24th September 2005
Secret Access
By Will Bontrager
You go to a web page without a form or prompt indicating it might double as a secret access to another web page. You go ahead and type a certain sequence of characters on your keyboard. If you get it right, you are redirected to a secret web page.
Saturday, 24th September 2005
How to Set up a Randomizing Function
By Richard Watts
This tutorial covers the steps involved in creating a randomizing function in Javascript.
Tuesday, 16th August 2005
Controlling Checkboxes with JavaScript
By Will Bontrager
Sometimes it's desirable to control whether or not certain checkboxes are checked, or to do something depending on which ones are checked. Although CGI scripts can do their own error checking and display messages to the form user as needed, letting JavaScript do some of the preliminary checks can be faster and less frustrating for the form user.
Wednesday, 29th June 2005
