Scripts

What's related > Accessibility and usability | Best practice for web pages: summary

NEW 2009 To all web editors:
See important new website about the migration of LSE websites into the Content Management System: CMS: migration

Archive of FrontPage 'Scripts' information:

The functionality of web pages can be enhanced through the use of scripting languages. These allow dynamic behaviour to be added to static pages eg validating forms before submission, providing interactivity, etc.

Use of scripts should be avoided in the main, because they adversely affect the accessibility of web pages. Please liaise with the Web Services Team for more information.

If used, scripts should be restricted to enhancing the performance of a page ie a page should be usable and accessible with or without scripts. If in doubt, develop the page without scripts and then embellish using scripts if required.

Examples

Correct

Incorrect

Using Javascript to validate a form prior to submission.

Using Javascript to alter a form as a user fills it in eg when the answer changes the rest of the form.

 

Delivering navigation using Javascript eg roll over menus.

^ Back to top

LSE