Nvu User Guide

 1 - Introduction

 2 - Quick start

 3 - Using Nvu

 4 - Stylesheets

 5 - Scripts

 6 - Inserts

 7 - Templates

 8 - Site Manager

 9 - Preferences

10 - Publishing

      Appendices

This page was composed using Nvu
Site map Quick index Copyright Postscript

Nvu logo 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.

Go to Top of page

Go to previous section

Go to next section

Valid HTML 4.01!Valid CSS

Nvu User Guide - Based on Nvu version 1.0 - Updated 15-July-2005