mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 19:50:12 +01:00
36 lines
490 B
HTML
36 lines
490 B
HTML
<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>
|