window.open()
Opis funkcji JavaScript window.open()
width & height the dimensions of the popup
window.open(href, windowname,”width=400,height=200,scrollbars=yes”);
left & top the distance from the top and left side of the screen
window.open(href, windowname, ‘width=250,height=150,left=50,top=100,scrollbars=yes’);
toolbar if the popup should have a set of navigation buttons across the top
window.open(href, windowname, ‘width=400,height=150,toolbar=yes,scrollbars=yes’);
location if the popup should have a location bar where the URL is displayed
window.open(href, windowname, ‘width=400,height=150,location=yes,scrollbars=yes’);
directories if the popup should have a row across the top with buttons to popular web sites
window.open(href, windowname, ‘width=400,height=150,directories=yes,scrollbars=yes’);
status if the popup should have a status bar across the bottom
window.open(href, windowname, ‘width=400,height=150,status=yes,scrollbars=yes’);
menubar if the popup should have a menu
window.open(href, windowname, ‘width=400,height=150,menubar=yes,scrollbars=yes’);
scrollbars if the popup should have scroll bars
window.open(href, windowname, ‘width=400,height=150,scrollbars=yes’);
resizable if users can resize the popup
window.open(href, windowname, ‘width=400,height=150,resizable=yes,scrollbars=yes’);
dependent if the popup should close when its opener window closes
window.open(href, windowname, ‘width=400,height=150,dependent=yes,scrollbars=yes’);
full screen how to open a full screen popup
window.open(href, windowname, ‘,type=fullWindow,fullscreen,scrollbars=yes’);
channelmode MSIE’s channel mode
window.open(href, windowname, ‘width=400,height=150,channelmode=yes,scrollbars=yes’);
window.open(href, windowname, ‘channelmode=yes,type=fullWindow,scrollbars=yes’);