JavaScriptでサブウィンドウを開く
code:samplejs
window.open(url, "window_name", "width=300,height=200,scrollbars=yes");
オプションの設定をすべて省いた場合は、通常のウィンドウ。
1つでもオプションを設定した場合は、その他のオプションはすべてオフ状態(no、0)
width= ウィンドウの横幅 ピクセル数で指定
height= ウィンドウの縦幅 ピクセル数で指定
scrollbars= スクロールバー 表示可能にする 表示しない
resizable= ウィンドウのサイズ変更 変更を可能にする 変更を禁止する
menubar= メニューバー 表示する 表示しない
toolbar= ツールバー 表示する 表示しない
location= ロケーションバー 表示する 表示しない
directories= ディレクトリバー 表示する 表示しない
status= ステータスバー 表示する 表示しない
window.open("https://x.com/home", "window_name", "width=600,height=400,scrollbars=no");
window.open("https://workflowy.com/", "window_name", "width=600,height=400,scrollbars=no");
ref.