Hello, there is my code:
var newwindow;
function open_popup(url)
{
newwindow=window.open(url,'name','height=400,width =200,left=100,right=200');
if (window.focus) {newwindow.focus()}
}
How to modify this script to be able to supply url, dimensions and position as function arguments (not only url as is now)? I mean function which looks like this: open_popup(url,width,height,left,top). Is it possible?