You are here: irt.org | FAQ | JavaScript | Window | Q805 [ previous next ]
You can either have different instances of the window.open method in the document:
<SCRIPT LANGUAGE="JavaScript"><!-- window.open('http://www.irt.org','windowName1','width=400,height=400,toolbars=false'); window.open('http://www.irt.org','windowName1','width=400,height=400,toolbars=false,location=false,resize=false'); //--></SCRIPT>
Or you create your own function and pass it the required attributes:
<SCRIPT LANGUAGE="JavaScript"><!-- function myOpen(url,windowName,width,height,directories,location,menubar,scrollbars,status,toolbar,resizable) { var features = 'width=' + width + ',height=' + height + ',directories=' + directories. + ',location=' + location + ',menubar=' + menubar + ',scrollbars=' + scrollbars + ',status=' + status + ',toolbar=' + toolbar + ',resizable=' + resizable; window.open (url, windowName, features); } myOpen('http://www.irt.org','windowName1',400,400,0,0,0,0,0,0,0); myOpen('http://www.irt.org','windowName1',400,400,1,1,1,1,1,1,1); //--></SCRIPT>
The first method is easiest.