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就可以
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就可以
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货