首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

自已常常用的js

2012-11-25 
自已经常用的js自已经常用的jsscript languagejavascript typetext/javascriptfunction winOpen (

自已经常用的js
自已经常用的js
<script language="javascript" type="text/javascript">
function winOpen (strURL,strName,width,height)
{
    theWindow = window.open (strURL,strName,"width="+width+" height="+height+" scrollbars=yes left="+(1024-width)/2+" top="+(768-height)/2);
    if (theWindow.opener == null) theWindow.opener = window;
    if (window.focus) theWindow.focus();
}
</script>



运用实例:<input type="button" value="选择" onclick="javaScript:winOpen('<html:rewrite action="/control/person/manage"/>?method=select','selectOrgs',818,290);">

热点排行