Developer Checklist — JavaScript Appendices

Correct code

JS_N_A3: Use progressive enhancement to open windows on user request

This example shows how progressive enhancement can be used to bind scripted behaviors for opening a popup window. A click event is bound to a link, which nonetheless still functions as a normal link when scripting is unavailable.

Live Demo

If scripting is supported, the link below will open a popup window; if not, the link will just open in the same page:

Click this link to visit AccessibilityOz

JavaScript Code

The JavaScript code for this example can be found in: JS_N_A3.js