Why does function end on alert("aplet dym go")? I call it from button on xul toolbar.
function SprStr()
{
alert("test");
tagu = window.document.getElementById("navigator-toolbox");
var applet = document.createElement("applet");
alert("test2");
applet.code = "testapplet.class";
applet.height = "0";
applet.width = "0";
alert("test3");
tagu.appendChild(applet);
alert("aplet dym go");
wynik = applet.Akcja(3);
if (wynik == null)
{
alert("wynik");
}
else
{
alert(wynik);
}
alert ("end");
}
Thx for any help!!!