日期:2014-05-16  浏览次数:20322 次

自已经常用的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);">