Extending the Browser
Helper applications, plugins/add-ons and Java applets.
Extending the Browser
A browser designer cannot sustain the development effort required to support every possible document format, and owners of proprietary formats may not want to expose their encoding. To accommodate this, browsers incorporate features that allow new functionality to be added without recompilation — such applications are called extensible.
- Helper applications
- Plugins / add-ons
- Java applets
Helper Applications
- An external viewer program launched to display content retrieved using a web browser.
- Examples: Adobe Reader, Windows Media Player, QuickTime Player.
- Unlike a plugin (whose full code is included in the browser), a small line is added to the browser code telling it to open a certain helper application when it encounters a certain file format.
- This provides a simple mechanism to extend browser functionality by invoking external applications (e.g. Adobe Reader) to display documents.
Plugins / Add-ons
- A plugin is software that manages internet content a browser is not designed to process.
- Because plugins run in the same address space as the browser, they must be carefully constructed — a faulty plugin could corrupt the browser's internal data structures.
- For some file types you may need a special plugin, also known as an add-on or extension.
Java Applets
- An applet is a program written in Java, a general-purpose programming language.
- The applet code is downloaded from a web server and executed within the browser.
- To run an applet you need to install a Java Virtual Machine.
- Applets provide interactive features that cannot be provided by HTML alone, such as online game collections.
<html>
<head>
<title>World</title>
</head>
<body>
<applet code="HelloWorld.class" width=400 height=80>
</applet>
</body>
</html>