Even though most of the time to get information from the page URL you will use the server side programming language, you can actually use Javascript to get the different sections that make up the URL...
In this tutorial you will learn how to create random colours using Javascript. To create a random colour in Javascript it is a simple function. function random_colour(){ return Math.floor(M...
The follow snippet is a function I use to validate email addresses. It is a very simple function which uses a regular expression pattern match to test if a email is of a correct format. Valid Email Fo...
When working with user inputs in web pages it is important that you validate all the inputs, this is so you can check that what the user is entering is the type of data you are expecting. It is import...