LoginSignup
3

More than 3 years have passed since last update.

javascript 別窓を開く

Last updated at Posted at 2020-01-20

一応メモとして

---------------------------------------------------------------

window.open(リンク先URL ,ウィンドウ名 , オプション)                                          
width   ウィンドウの幅           数値                          
height  ウィンドウの高さ            数値                          
left    ウィンドウの左の位置          数値                          
top ウィンドウの上の位置          数値                          
menubar メニューバーの有無         0 あるいは 1                            
toolbar ツールバーの有無            0 あるいは 1                            
status  ステータスバーの有無          0 あるいは 1                            
scrollbars  スクロールバーの有無          0 あるいは 1                            
resizable   サイズ変更の可否            0 あるいは 1                            

---------------------------------------------------------------                                         
別ウィンドウを開く際にPOSTでパラメータを送る                                            
window.open("" ,"pdf_win");                 
window.openで空のページを開いてからそこに対してSUBMITを行います。                       
document.frmCart.action='cart_pdf.php';                                         
document.frmCart.method = 'POST';                                           
document.frmCart.target = 'pdf_win';                                            
document.frmCart.submit();  

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3