<script type="text/javascript" > var winHeight; var winWidth; var win = null; winWidth=window.self.screen.width; winHeight=window.self.screen.height; function toFull(){ if(window.name=="fullscreen")return; var a =window.open("","fullscreen","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+winWidth+",height="+(winHeight-50)) a.location = window.location.href window.opener=null window.close() } toFull(); </script>
hta + js就可以了参考下 EXT吧
如果用extjs的话,我也试过,使用extjs出来的窗口虽然比较漂亮,但想要与兼容起来,好像还是有困难。
var winHeight;
var winWidth;
var win = null;
winWidth=window.self.screen.width;
winHeight=window.self.screen.height;
function toFull(){
if(window.name=="fullscreen")return;
var a =window.open("","fullscreen","top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width="+winWidth+",height="+(winHeight-50))
a.location = window.location.href
window.opener=null
window.close()
}
toFull();
</script>