3
<TITLE>Simple Plug-in Test</TITLE>
8
<h1> XPConnect Scriptable Sample Plug-in </h1>
11
This page contains a testcase which demonstrates the work of scriptable
12
plug-in with Mozilla. This example plug-in has no native GUI and does not
13
draw anything in the plugin window. Clicking on the button will result in calling
14
native plugin method from JavaScript. Show Version will instruct the plug-in
15
to retrieve the Mozilla user agent string and return it to JavaScript to show
22
<embed type="application/simple-plugin" width=1 height=1 hidden="true"><br>
25
var embed = document.embeds[0];
27
function ShowVersion()
34
<form name="formname">
35
<input type=button value="Show Version" onclick='ShowVersion()'>