熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> Java編程 >> JSP教程 >> 正文

Javascript實現窗口最大化的嚴格定義

2013-11-15 11:41:15  來源: JSP教程 

  <SCRIPT LANGUAGE=JavaScript>
<!
var str = left=screenX=top=screenY=fullscreen=yes;//fullscreen=yes只對IE有效!

  if (windowscreen) {
var ah = screenavailHeight ;
var aw = screenavailWidth ;
str += height= + ah;
str += innerHeight= + ah;
str += width= + aw;
str += innerWidth= + aw;
} else {
str += resizable; // 對於不支持screen屬性的浏覽器可以手工進行最大化 manually
}

  function launchFull(url name) {
return windowopen(url name str);
}

  var win = launchFull( full);

  // >
</SCRIPT>


From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19443.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.