Where to put user scripts in Opera
Thursday May 31, 2007
JavaScript doesn't just run in web pages, most web browsers allow you to attach JavaScript into the browser that can then run against all or selected pages.
User scripts are Javascripts ... Read More
Replacing Matches
Wednesday May 30, 2007
Regular Expressions can be used to do a search and replace on your content.
The third tutorial on "regular expressions" shows you how to use the string.replace method to replace parts ... Read More
JavaScript and Unicode
Tuesday May 29, 2007
JavaScript can use Unicode characters
The ASCII character set is limited to 128 different characters and 32 of those are reserved for control characters. Unicode solves this shortage by using one, ... Read More
Random Tip Maker
Monday May 28, 2007
You don't have to learn any JavaScript in order to use it.
There are plenty of JavaScripts around that can be plugged straight into your web page and work. Others need ... Read More
Choosing Prebuilt Scripts
Saturday May 26, 2007
You don't need to learn JavaScript to be able to use it.
There are lots of places on the web where you can obtain Javascripts that have already been written and ... Read More
Inline Tooltips
Friday May 25, 2007
JavaScript can update the information in the page to explain what your visitors don't understand
Some people prefer that additional details about a term or link on their web page be ... Read More
Compressing Javascript
Thursday May 24, 2007
JavaScript can modify your JavaScript for you
When you write your Javascript you should lay it out all nicely with loads of spaces, indentation, and comments. This makes it easier to ... Read More
Ignore Case and Global
Wednesday May 23, 2007
Regular Expressions can ignore capitals and find all matches
The second tutorial on Regular Expressions covers how to set the expression for global processing and to ignore capitalization.
Ignore Case and Global
Professional Ajax
Tuesday May 22, 2007
Not all books on Ajax are created equal.
The second edition of "professional Ajax" is much larger than the first and covers a far wider range of ways to use Ajax ... Read More
JavaScript and HTML Tidy
Monday May 21, 2007
HTML Tidy can mess up your JavaScript code.
Running HTML Tidy is a good way to tidy up your HTML and correct a lot of the minor errors it may contain. ... Read More
Targetting External Links to a New Window
Saturday May 19, 2007
JavaScript can change link behaviour
One thing a lot of people like to do with their web site is to have all of the external links open in a new window ... Read More
Mouse Cursor Position
Friday May 18, 2007
JavaScript does have some access to things outside of the web page.
Some Javascripts, animations in particular, need to know where the mouse cursor is on the page. Different browsers provide ... Read More
One Field with Multiple Values
Thursday May 17, 2007
JavaScript can handle multiple values in the same form field.
On some occasions you will have a selection list or radio buttons on a form on your web page where you ... Read More
Pattern Matching
Wednesday May 16, 2007
JavaScript supports most regular expression constructs.
Introducing a new series of tutorials on regular expressions. In this first tutorial we look at how to define a regular expression and use it ... Read More
How Secure are Password Fields in Forms?
Tuesday May 15, 2007
JavaScript can display passwords in plain text
The password fields in HTML forms display your password as asterisks but the actual value is still just plain text as this simple bookmarklet ... Read More
Unobtrusive JavaScript
Monday May 14, 2007
JavaScript belongs in a separate file linked from the head of your page.
There is no longer any need to clutter the body of your web page with event handlers attached ... Read More
Javascript and XHTML
Saturday May 12, 2007
You can embed JavaScript into XHTML if you absolutely must
XHTML treats embedded Javascript code slightly differently from the way HTML does. You need a small piece of extra code to ... Read More
Feature Sensing
Friday May 11, 2007
Test if the browser supports a specific JavaScript Feature directly, do not whether the browser was one that did or didn't support that feature ten years ago.
Right from day one ... Read More
Using window.onload
Thursday May 10, 2007
Keep JavaScript out of your HTML
As an alternative to placing an onload attribute into your body tag you can set up a global onload event handler. This is one way ... Read More
Regular Expressions
Wednesday May 9, 2007
JavaScript supports Regular Expressions almost the same way that server side languages do
A regular expression is a pattern that uses a special syntax to describe the content of a text ... Read More
Show Cookies
Tuesday May 8, 2007
JavaScript can run from the bookmarks menu to help you see what the JavaScript in the web page is doing.
With this JavaScript bookmarklet you can easily find out if a ... Read More
Referencing Form Fields
Monday May 7, 2007
Form field names are uised to pass the information to the server
The names that you give to the fields in your form in order for the server side processing to ... Read More
You Can't Protect Your Page Content
Saturday May 5, 2007
Web pages are open source and there is nothing you can do to protect the content
Every so often I receive emails about my Image Protection javascript that places the image ... Read More
Paint Mixer
Friday May 4, 2007
JavaScript can provide for all sorts of useful calculations
This Javascript calculator shows you the effects of mixing various quantities of paint. See for yourself the effect of mixing various quantities ... Read More
Upper and Lowercase Conversion
Thursday May 3, 2007
Convert to the upper and lower case combination you require with JavaScript
Javascript itself is case sensitive. All Javascript reserved words, DOM references, and event handlers etc all have to be ... Read More
Handling Page Resize
Wednesday May 2, 2007
Changing the size of the browser affects animations
In the seventeenth animation tutorial we look at how to detect when the browser has been resized so that we can adjust the ... Read More
Failsafe Remote Images
Tuesday May 1, 2007
Not all browsers provide the same means for JavaScript to tell if an image has loaded
If your site uses images remotely loaded from another site to display advertising (or for ... Read More

