File: test.html

package info (click to toggle)
iceape 1.0.8-4
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 271,360 kB
  • ctags: 283,957
  • sloc: cpp: 1,724,223; ansic: 919,481; xml: 97,519; makefile: 45,358; asm: 34,831; perl: 28,306; sh: 26,360; cs: 6,232; java: 5,329; python: 3,077; lex: 423; php: 244; yacc: 238; pascal: 230; sql: 146; csh: 132; objc: 97; ada: 49; awk: 14; sed: 4
file content (48 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<HTML>
<HEAD>
<TITLE>4x Scriptable Plug-in Test</TITLE>
</HEAD>
<BODY>

<center>
<h1> XPConnect Scriptable Old Style Sample Plug-in </h1>
</center>

This page contains a testcase which demonstrates the work of scriptable 4.x style 
Navigator 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/mozilla-4x-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>