RetroZilla/plugin/oji/MRJ/testing/LiveConnect/Test.html

36 lines
490 B
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<HTML>
<HEAD>
<TITLE>Testing LiveConnect</TITLE>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
var System = java.lang.System;
var StringPtr = Packages.com.apple.MacOS.StringPtr;
function writeln(text)
{
document.write("<P>", text, "</P>");
}
function println(text)
{
var pstr = new StringPtr(text);
pstr.DebugStr();
// System.out.println(text);
writeln(text);
}
function helloWorld()
{
println("hello Gecko.");
}
helloWorld();
</SCRIPT>
<BODY onload="helloWorld();">
</BODY>
</HTML>