Applet中的一个按纽事件代码如下:
try{
    URL url = new URL("http://host/redirect.htm");
    this.getAppletContext().showDocument(url,"_blank");
    }
    catch(Exception ee)
    {
      ee.printStackTrace();
    }redirect.htm
<Script language="javascript">
this.location="telnet://bbs.gznet.edu.cn";
</script>
为什么点击按钮却不能弹出网页
直接在浏览器的地址栏中输入http://host/redirect.htm就可以