Saturday, September 4th, 2010

Find on this Page

Just about all browsers have a find on page option in the menu and so adding an equivalent option using JavaScript may not appear all that useful. It doesn’t work completely the same way as the built in ones do though since it uses a separate browser window rather than a dialog box and therefore [...]

Saturday, August 21st, 2010

Your Favourites

This example of my cookie toolbox in action allows you to set up a web page on my site that links to your fifty favourite web pages. Your Favourites

Friday, August 20th, 2010

A Cookie ToolBox

Cookies are the main way of retaining information between one web page and the next and the only way to retain information between different browser sessions. Cookies are supported by both JavaScript and server side processing. Cookies are however limited in the amount of data they can store. Each domain can store up to 20 [...]

Wednesday, August 18th, 2010

Limiting Textarea Text

Unlike normal input text fields where you can specify a maxlength attribute, there is no HTML equivalent for textareas. Instead if we want to limit the amount of text that can be entered in the browser rather than just truncating the textarea after it is submitted we need to use JavaScript. Limiting Textarea Text

Sunday, August 15th, 2010

Default Values for Arguments

Most programming languages have a really obvious way of assigning default values to function arguments for when that parameter is omitted. JavaScript has a not so obvious but far more flexible way of doing it. Default Values for Arguments

Monday, August 9th, 2010

New to Web Site Building

Everyone has to start somewhere and the best place to start with creating a web presence is with a blog or similar setup where you just need to plug in your content. To be able to take full advantage of the web though you’ll need to learn the languages that it uses. New to Web [...]

Thursday, July 22nd, 2010

How to Call a Function

Defining a function in JavaScript is rather useless if you don’t actually make use of the function. In this second tutorial on JavaScript functions we look at how to call the functions that we have defined. How to Call a Function

Friday, July 9th, 2010

Overlay Messages

The extended tooltip script places content in a “layer” above the main content of the web page. We can use that same technique to overlay other content on top of our main page for all sorts of other purposes. Overlay Messages

Thursday, July 8th, 2010

Extended Tooltips

A tooltip is the yellow box that most browsers display text in when you hover over an element in the web page that has a title attribute. Not all browsers display the title attribute as a yellow box to contain the text, some display the text in the status bar instead. The other limitation is [...]

Thursday, July 1st, 2010

Function Libraries

In the seventh and last tutorial on JavaScript functions we look at an alternative way of being able to add sophisticated JavaScript functionality into web pages without having to write much code yourself by using a pre-written library that includes most of the functionality that you require. Function Libraries

Sunday, June 27th, 2010

Returning a Value

In this sixth introductory JavaScript tutorial on how to use functions we look at how you can return a value from the function that will be substituted into the calling code in place of the call. Returning a Value

Wednesday, June 23rd, 2010

Copying from a Drop Down List

Using JavaScript with drop down lists is not the most obvious of interactions to code. In this article we look at the JavaScript code needed to copy the entry selected from the drop down list into an adjacent input text field. It would of course be just as easy to use the value retrieved from [...]