haoshuang3394 发表于 2013-2-4 22:24:59

Making the Browser Visit a URL:让浏览器访问一个applet URL

<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script>try {// The following 2 lines of code must be// on the same linegetAppletContext().showDocument(new URL(getDocumentBase(), "http://hostname/page.html"));} catch (MalformedURLException e) {}
页: [1]
查看完整版本: Making the Browser Visit a URL:让浏览器访问一个applet URL