3
<TITLE>4x Scriptable Plug-in Test</TITLE>
8
<h1> XPConnect Scriptable Sample Plug-in </h1>
11
This page contains a test case which demonstrates the work of scriptable plug-in
12
with Mozilla. The example plug-in occupies the area right below this text,
13
and you should see a frame the plug-in draws around its window. Below the plug-in window
14
there are two buttons. Clicking on the buttons will result in calling native plugin
15
methods from JavaScript. Show Version will instruct the plug-in to retrieve the
16
Mozilla user agent string and display it in the plug-in window, Clear button will
17
call plug-in method to erase the window.
23
<embed type="application/scriptable-plugin" width=600 height=40><br>
26
var embed = document.embeds[0];
28
function ShowVersion()
40
<form name="formname">
41
<input type=button value="Show Version" onclick='ShowVersion()'>
42
<input type=button value="Clear" onclick='Clear()'>