Javascript 如何为弹出窗口设置选项..例如大小
我有下面的功能来创建一个弹出窗口Javascript 如何为弹出窗口设置选项..例如大小,javascript,Javascript,我有下面的功能来创建一个弹出窗口 function makewindows(html){ child1 = window.open ("about:blank"); child1.document.write(html); child1.document.close(); } 它工作正常,但在firefox中会打开一个新选项卡。我想知道如何使它成为一个实际的弹出窗口,一个较小的大小等,从实际的窗口分开 window.open("example.html", "windowName",
function makewindows(html){
child1 = window.open ("about:blank");
child1.document.write(html);
child1.document.close();
}
它工作正常,但在firefox中会打开一个新选项卡。我想知道如何使它成为一个实际的弹出窗口,一个较小的大小等,从实际的窗口分开
window.open("example.html", "windowName",
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");
有关更多详细信息,请参阅或