Index: > A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Business Industries Finance Tax

Home > JavaScript


First Prev [ 1 2 3 4 5 ] Next Last

6 Common Uses in Web Browsers

JavaScript may be used for all aspects of client-side scripting of a web browser, however, some uses have become more ubiquitous than others. Common examples include image replacement, the creation of pop-up windows, and the validating of form content.

In most modern browsers, the following snippet of XHTML source code shows one way in which an image can be made to swap out with another image when a user moves their cursor over it (often called a rollover or mouse over effect). However similar behaviour can be achieved using only pure CSS.

http://en.wikipedia.org/'" onmouseover = "this.src='rollover.png'" onmouseout = "this.src='normal.png'" />

7 Offspring

A novel example of the use of JavaScript are Bookmarklets, small sections of code within web browser Bookmarks or Favorites.

The programming language used in Macromedia Flash (called ActionScript) bears a strong resemblance to JavaScript due to their shared relationship with ECMAScript. ActionScript has nearly the same syntax as JavaScript, but the object model is dramatically different.

JavaScript for OSA (JavaScript OSA, or JSOSA), is a Macintosh scripting language based on the Mozilla 1.5 JavaScript implementation. It is a freeware component made available by Late Night Software. Interaction with the operating system and with third-party applications is scripted via a MacOS object. Otherwise, the language is virtually identical to the core Mozilla implementation. It was offered as an alternative to the more commonly used AppleScript language.

8 See also

9 References

10 External links

Major programming languages ( more)
Ada | ALGOL | APL | AWK | BASIC | C | C++ | C# | COBOL | Delphi | Eiffel | Fortran | Haskell | IDL | Java | JavaScript | Lisp | LOGO | ML | Objective-C | Pascal | Perl | PHP | PL/I | Prolog | Python | Ruby | SAS | Scheme | sh | Simula | Smalltalk | SQL | Visual Basic

Object-oriented programming languages Programming languages Prototype-based programming languages Scripting languages



Non User