日期:2014-05-16 浏览次数:20415 次
转载:http://hi.baidu.com/luo_qing_long/blog/item/de23e4824ed9a297f703a672.html
?
<a href="javascript:
void(window.open('1.htm','_blank','toolbar=no,scrollbar=no,top=50,left=50,width=100,height=100'));"
>Open 1.htm</a>
和 <a href="javascript: var win=window.open ('1.htm','_blank','toolbar=no,scrollbar=no,top=50,left=50,width=100,height=100')" >Open 1.htm</a> 最好。 <a href="#" onclick="window.open('1.htm','_blank','toolbar=no,scrollbar=no,top=50,left=50,width=100,height=100')" >Open 1.htm</a>?? 地址最后会多个"#".
<a href="#"? onclick="window.opern('/test.do','test','width=200,height=300,toolbar=no,scrollbar=no')" target="_bank"> 将href="#"或具体的路径时,打开新页面后,会重新加载href页面,做增,删,改,挺好的。。
在用distag table 时,列的href属性长度有限制,得写一个js function
??? <script type="text/javascript" charset="UTF-8">
??????? function showasracdwin(a,b,c,d){ ??????????????? window.open("/cbill/hd_asracd/asracd!list.do?a="+a+"&b="+b+"&c="+c+"&d="+d,"asracd", ??????????????? "width=700,height=250,toolbar='no',scrollbars='auto',menubar='no',left=200,top=200"); ??? ??? } ??? </script>
java后台:
return "<a href=\"javascript:void(showasracdwin("+vc2trunkcode_in+","+vc2trunkcode_out+","+ numcountryguid+","+numdmsguid+"));\">" + "detail" + "</a>";? |
?
?