| Site map | Quick index | Copyright | Postscript |
5
Scripts
Scripts are short programs that are included in HTML documents (and therefore consist of alphanumeric characters) which run on the browser and can change the presentation of pages on some way. Scripts must be written in an appropriate script language but this does not form part of the HTML specification. Support for scripting language depends on the browser employed.
The most common scripting language is probably JavaScript and most modern browsers provide support but this can sometimes be disabled if desired by the user.
Nvu allows the use of scripts on pages but it does not respond to them. The effect of the script will not be seen on the Normal, HTML Tags or Preview view (but the code will of course appear in Source view).
To see the code at work click on ‘Browse’.
The ‘Insert’ menu does offer one piece of JavaScript, a calendar. When you click it nothing appears to happen until you save and run your file on a browser when the calendar appears!.
In the menu there are commands Tools > Web Development – JavaScript Console and JavaScript debugger. I hope to cover this more fully in a later issue of the Guide.
Note If your page refuses to save after inserting the Calendar widget use the “Save as” command.
Nvu User Guide - Based on Nvu version 1.0 - Updated 15-July-2005