mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-11 10:20:19 +01:00
49 lines
1.1 KiB
HTML
49 lines
1.1 KiB
HTML
|
<HTML>
|
||
|
<HEAD>
|
||
|
<TITLE>4x Scriptable Plug-in Test</TITLE>
|
||
|
</HEAD>
|
||
|
<BODY>
|
||
|
|
||
|
<center>
|
||
|
<h1> XPConnect Scriptable Sample Plug-in </h1>
|
||
|
</center>
|
||
|
|
||
|
This page contains a test case which demonstrates the work of scriptable plug-in
|
||
|
with Mozilla. The example plug-in occupies the area right below this text,
|
||
|
and you should see a frame the plug-in draws around its window. Below the plug-in window
|
||
|
there are two buttons. Clicking on the buttons will result in calling native plugin
|
||
|
methods from JavaScript. Show Version will instruct the plug-in to retrieve the
|
||
|
Mozilla user agent string and display it in the plug-in window, Clear button will
|
||
|
call plug-in method to erase the window.
|
||
|
|
||
|
<br><br>
|
||
|
|
||
|
<center>
|
||
|
|
||
|
<embed type="application/scriptable-plugin" width=600 height=40><br>
|
||
|
|
||
|
<script>
|
||
|
var embed = document.embeds[0];
|
||
|
|
||
|
function ShowVersion()
|
||
|
{
|
||
|
embed.showVersion();
|
||
|
}
|
||
|
|
||
|
function Clear()
|
||
|
{
|
||
|
embed.clear();
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<br>
|
||
|
<form name="formname">
|
||
|
<input type=button value="Show Version" onclick='ShowVersion()'>
|
||
|
<input type=button value="Clear" onclick='Clear()'>
|
||
|
</form>
|
||
|
|
||
|
</center>
|
||
|
|
||
|
</BODY>
|
||
|
</HTML>
|