2013年9月1日 星期日

html-new-open


window.open


function openNewWindow(url,mWidth,mHeight) {
_top=_top*1+numWindows*20;
_left=_left;
    numWindows += 1;
parameters = "toolbar=0,scrollbars=0,location=0,statusbar=0,"+
"menubar=0,resizable=0,width=mWidth,height=mHeight,top = 1 ,left =650 ";
var title = "Window #"+numWindows;
myWindow=window.open(url,'','location=false,width=400,height=300');
//myWindow=window.open(url);
myWindow.focus();  
}


call it :

openNewWindow('http://www.google.com',200,300);

沒有留言:

張貼留言