读书人

自已常常用的js

发布时间: 2012-11-25 11:44:31 作者: rapoo

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

读书人网 >JavaScript

热点推荐