Plugin may interact with the page you viewed, or act as a stand-alone application. The display result maybe independent of the web page, i.e., the plugin may keep its status when the web page URL changed.
Here is an example of plugin:
All plugins of a IE process run in a unique hidden IE window. The hidden window is responsible for display/events of all plugins.
The plugin structure is shown blow: