A
Ayrton
I've make a simple applet for use javascript function.
When the browser is IE, no problem, but if the browser is netscape 7,
when ... JSObject.getWindow(this); ... the message is ": at
netscape.javascript.JSObject.getWindow(Unknown Source) ...".
Why ?
Thanks
import netscape.javascript.*;
import java.awt.*;
public class Provajs extends JApplet {
private JSObject window = null;
public void init(){}
public void start(){
window = JSObject.getWindow(this);
String[] message = { "Oggi fa molto caldo!"};
window.call("alert", message);
}
}
When the browser is IE, no problem, but if the browser is netscape 7,
when ... JSObject.getWindow(this); ... the message is ": at
netscape.javascript.JSObject.getWindow(Unknown Source) ...".
Why ?
Thanks
import netscape.javascript.*;
import java.awt.*;
public class Provajs extends JApplet {
private JSObject window = null;
public void init(){}
public void start(){
window = JSObject.getWindow(this);
String[] message = { "Oggi fa molto caldo!"};
window.call("alert", message);
}
}