[問題] javascript 全螢幕視窗

看板Web_Design作者 (kira)時間16年前 (2008/04/23 23:53), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/1
因為某些需求,所以希望出來的視窗是全白 現在工具列狀態列都已經消去了,剩下一個東西一直很苦惱 就是IE上方那一列藍色的標題列消不掉,還有最大化最小化那些 希望有高手可以幫我解答,謝謝你 m(_ _)m 以下附上我的程式碼 <html> <head> <title>心理學</title> <script> function OpenNewFile(url,strName) { var setWindow ="left=0,screenX=0,top=,screenY="; setWindow += ",location=no,titlebar=no,menubar=no,resizble=auto"; var maxh = screen.availHeight; var maxw = screen.availWidth; setWindow += ",height="+maxh; setWindow += ",innerHeight="+maxh; setWindow += ",width="+maxw; setWindow += ",innerWidth="+maxw; window.open(url,strName,setWindow); } </script> </head> <body> <h2>心理學測驗</h2> <hr> <form> <input type=button value="按我開始測驗" onclick="OpenNewFile('test2.html','心理實驗')"> </form> </body> </html> -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.168.91.93

04/23 23:54, , 1F
啊...抱歉剛才才看到版規,對不起
04/23 23:54, 1F
文章代碼(AID): #183rk4oh (Web_Design)