前提・実現したいこと
環境winodws10、IE11(IE設定のタブ:ポップアップ設定:IEで自動判定)
javascriptのwindow.open関数の第三パラメータにtoolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes
を指定して新規ウインドウを開きたいです。
発生している問題・エラーメッセージ
window.openの第三パラメータにtoolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes
上記のオプションをすべてをyesで設定するとなぜかタブで開かれてしまいます。
いずれか一つをnoに設定すると新規ウインドウで開かれます。
該当のソースコード
html,javascript
1<html> 2 3<head> 4<title>window.open - ウィンドウを開く</title> 5</head> 6 7<body> 8 9<!--ウィンドウを開くのサンプル--> 10<script type="text/javascript"> 11function open1() { 12 win1 = window.open("http://www.yahoo.com", "yahoocom", "toolbar=no,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); 13 } 14function close1() { 15 if (win1 != null && win1 != undefined) { 16 win1.close(); 17 } 18} 19</script> 20<button onclick="open1()">open1</button><br> 21<hr> 22<button onclick="close1()">close1</button><br> 23 24</body> 25
試したこと
chrome、edgeでも同様の現象となりました
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。
2018/07/27 02:50
2018/07/27 03:40
2018/07/27 04:09
2018/07/30 07:45