HTML中table行数取得 document.getElementById('tableID').rows.length 在frame中一个界面通过点击刷新另一个界面 parent.frames[frame_name].location.href=url; 在子窗体中点按钮刷新主窗体并关闭 if (window.opener != undefined) { window.opener.parent.location.replace(URL); window.self.close(); } 用IE重起机器或关机 <script language="javascript"> var application = new ActiveXObject('shell.Application.1'); </script> <button onlick=Application.shutdownWindows();>关机</button> <button onlick=Application.Suspend();>挂机</button>