在firefox和IE中打開沒有地址欄的新彈出窗口希望有人能提供幫助。只是無法在沒有地址欄的Firefox中打開新窗口。IE可以正常使用以下代碼window.open('/pageaddress.html', 'winname',
directories=0,titlebar=0,toolbar=0,location=0,status=0,
menubar=0,scrollbars=no,resizable=no,
width=400,height=350);我需要為所有瀏覽器制作
3 回答
九州編程
TA貢獻1785條經驗 獲得超4個贊
檢查window.open上的mozilla文檔。窗口功能(“directory = ...,...,height = 350”)等參數應該是一個字符串:
window.open('/pageaddress.html','winname',"directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=no,resizable=no,width=400,height=350");嘗試在瀏覽器中使用。請注意,某些功能可能會被用戶首選項覆蓋,例如“location”(請參閱doc。)
添加回答
舉報
0/150
提交
取消
