FileDocCategorySizeDatePackage
JScript.javaAPI DocExample906Sun Feb 15 20:44:14 GMT 2004None

JScript

public class JScript extends Applet

Fields Summary
JSObject
jsObject
Constructors Summary
Methods Summary
public voidinit()

		jsObject = JSObject.getWindow(this);
		Button b = new Button("CLOSE BROWSER");
		b.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent evt) {
				jsObject.eval("window.close()");
			}
		});
		add(b);