Check popup open
-
hi all i have some code check popup open but have some problem in the fist link will open popup with pram is width="300" and height="300" but when this popup is open when i click the link "open3" the window don't rezise width and height to "200" and "200" Some body help me if this popup is open and close this it and open new popup OR if this popup is open, resize this popup with new pram var newwindow; function popUp(url, w, h, namn) { newwindow=window.open(url, namn, 'width='+ w +', height=' + h + ' resizable=no, scrollbars=auto, toolbars=no, location=no, directories=no, status=no, menubar=no, copyhistory=no'); if (window.focus) {newwindow.focus()} } [open1](javascript:popUp( 'http://www.svt.se', 300, 300, 'little' )) [open2](javascript:popUp( 'http://www.abb.se', 500, 500, 'bigger')) [open3](javascript:popUp( 'http://www.svt.se', 200, 200, 'little' )) [open4](javascript:popUp( 'http://www.abb.se', 900, 900, 'bigger'))