Scripts and Dynamic Pages on Websites Outside of the Energy.gov Drupal Environment
This page describes the requirements for developing scripts and dynamic pages on EERE websites outside of Energy.gov. The use of scripting allows the creation of dynamic websites that allow user interaction.
- Make sure that every script works in the standard browser set.
- Make sure scripting does not alter the intended functionality of the "Back" button, which people use frequently to back out of pages.
- Ensure that scripts and dynamic pages conform to Section 508 accessibility standards.
Avoid the use of pop-up windows or new browser windows. This technique causes confusion for those using screen readers by introducing a sudden change of focus and loss of orientation. Normal forms of navigation such as the back button no longer function as expected.
If you do use a pop-up window, you must tell your users that the link opens in a new window. This can be part of hyperlink text or written into alt text.