Call Java script function in Applet program code

import java.applet.*;
import java.net.*;

public class Test extends Applet{
public void init(){
String msg = "Call Java script function in Applet program code";
try {
getAppletContext().showDocument
(new URL("javascript:doAlert(\"" + msg +"\")"));
}
catch (MalformedURLException me) { }
}
}

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Use of req.query, req.params and req.body in NODE JS

How to capture finger prints in java