user918477
user918477

Reputation:

launch applet from web page

is it possible to launch an applet using webpage by clicking on link/button. I mean onclick of link/button, i want to launch an applet, which shouldn't be embedded with the webpage. It should launch outside the webpage. Thanks in advance !!

using javascript i did this thing, but i want it like popup msgbox.

<script src="http://www.java.com/js/deployJava.js"></script>
<script>
    function showApplet()
    {
    var attributes = {code:'myform.form.class',
                      archive:'applet.jar',
                      width:710, height:540} ;
    var parameters = {fontSize:16} ;
    var version = '1.6' ;
    deployJava.runApplet(attributes, parameters, version);
}
</script>
 <button onclick="javascript:showApplet()" value="Show" ></button>

Upvotes: 0

Views: 1095

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168845

Launch the applet using Java Web Start. Since the Plug-In 2 architecture, JWS applets could be embedded. But they could be launched free-floating since JWS was introduced.

Upvotes: 1

Related Questions