Multiple Windows using window.open()

后端 未结 5 1318
無奈伤痛
無奈伤痛 2020-11-29 10:52

So as we all know if you click on a submit button that has embedded in it a onClick(windown.open(...)) this opens a new window with all the lovely attributes yo

5条回答
  •  醉酒成梦
    2020-11-29 11:48

    try this,it will create new child, fiddle

    var randomnumber = Math.floor((Math.random()*100)+1); 
     window.open(yoururl,"_blank",'PopUp',randomnumber,'scrollbars=1,menubar=0,resizable=1,width=850,height=500');
    

提交回复
热议问题