How to use charat() – Free JavaScript Tutorials for Beginners 5.2

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course
Another useful in-built JavaScript function is chartAt(). We’ll see how this works by creating an anagram programme. We’ll keep the same format of text box and button. But this time, when the button is clicked, the programme will create an anagram of the name[......]

Read More…

substring() and split() – Free JavaScript Tutorials for Beginners 5.1

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
For this last section of the Javascript course, we’re going to look at manipulating text with Javascript’s own in-built functions. These in-built functions can really make your life easier, and if you’re serious about learning the Javascript[......]

Read More…

Using JavaScript to Validate Radio Buttons – Free JavaScript Tutorials for Beginners 4.8

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
Radio buttons are closely related to check boxes. Only, with a radio button you get just the one choice from a list of options. With a check box you can tick all the boxes, if you wanted. Here’s what radio buttons look like on a form:
Your Location:

N[......]

Read More…

How to get values from List Boxes – Free JavaScript Tutorials for Beginners 4.7

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
A form element closely related to the Select element is the Multiple select. This time, the elements is a list box where you can select more than one item. You select more than one item by holding down the Ctrl key on your keyboard and then clicking items wit[......]

Read More…

Using JavaScript to Validate a Drop Down Box – Free JavaScript Tutorials for Beginners 4.6

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
A drop down box on a form allows you to select one option among many. It looks like this:

Here’s the HTML code for the above drop down box:

<SELECT NAME = s1>
<OPTION VALUE = “NE” selected >North East</OPTION>
<OPTION [......]

Read More…

JavaScript and Checkboxes – Free JavaScript Tutorials for Beginners 4.5

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
The only thing we’re going to do with our check boxes on our form is to see if they have been ticked or not. If a box has been ticked, then no errors have occurred; if none of the boxes have been ticked, then an error has occurred, and the user will get[......]

Read More…

Using JavaScript to Validate an Email Address – Free JavaScript Tutorials for Beginners 4.4

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
Checking for a valid email address is a little more difficult. We have to make sure that the user typed an “at” sign ( @ ). But we also have to make sure that there’s “dot” something at the end: .com, .co.uk, .net or whatever.
Bu[......]

Read More…

Using Javascript to Validate Forms – Free JavaScript Tutorials for Beginners 4.3

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
The form you’ll work with is quite simple. It will be used only for your visitors to leave their name, email address and some comments. They will be invited to say what they liked about the site, and what they didn’t like. This will be done with c[......]

Read More…

How to call a function – Free JavaScript Tutorials for Beginners 4.2

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
Functions can call other functions, and have a value passed back to the calling line. We’ll see how that works now. Once you have grasped the concept, what we’re then going to do is write code to validate data that a user might enter on a form.
Fi[......]

Read More…

Javascript Functions (A calculator program) – Free JavaScript Tutorials for Beginners 4.1

Posted by NosaLee in JavaScript Programming on 30-05-2012. Tags: , ,

Back to Home Previous Course Next Course
We’ve already used functions a fair bit in these pages. We’re going to explore them a bit further. Functions, if you remember, are simply sectioned-off pieces of code. When you want to use your code segment, call it by its name and it will come ru[......]

Read More…