Web Idea Center


IT Help Center | UD Home | Comment  
Home How to

lightbulb Inside the Center
    FOR WEB DEVELOPERS > POLICIES, PROCEDURES & STANDARDS > JAVA & SCRIPTING LANGUAGES

JAVA & SCRIPTING LANGUAGES

Java and scripting languages are used to add dynamic content to web pages and allow user interactivity. However, these techniques limit accessibility because not all browsers support them. Use them sparingly and consult an expert if in doubt.


SCRIPTING

Many web page authoring programs use JavaScript to extend HTML with highly interactive features.

Required:

Use standard core JavaScript with a <script type="text/javascript"> tag.

**Each page which uses JavaScript should have at least one <noscript> tag to provide the same information to users without JavaScript enabled in their browsers.

Recommended:

Do not use the depreciated "language=" attribute on the script tag. All standard core JavaScript programs will execute in the browser's default scripting language.

All script elements should be in the HTML header unless they generate content.

Consider loading your JavaScript programs with a "src" attribute and an external file with a ".js" suffix. This avoids the need to hide your script from older browsers.


JAVA

A Java applet is a small highly interactive application running on your user's local machine and displaying in part of your web page.

Recommended:

Consult an expert before embedding a Java applet on your Web Page.


University of Delaware