简体   繁体   English

从网页启动小程序

[英]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. 我的意思是单击链接/按钮时,我要启动一个applet,该applet不应与网页一起嵌入。 It should launch outside the webpage. 它应该在网页之外启动。 Thanks in advance !! 提前致谢 !!

using javascript i did this thing, but i want it like popup msgbox. 使用javascript我做了这件事,但我想要它像弹出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>

Launch the applet using Java Web Start . 使用Java Web Start启动小程序。 Since the Plug-In 2 architecture, JWS applets could be embedded. 由于采用了Plug-In 2体系结构,因此可以嵌入JWS小程序。 But they could be launched free-floating since JWS was introduced. 但是,自从引入JWS以来,它们可以自由浮动地启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM