Aug 8, 2001 #1 sreeky Programmer Aug 8, 2001 77 US I know Netscape works using screenX=0,screenY=0, but IE doesn't. Is there a way around? Thanks!! Sreeky
I know Netscape works using screenX=0,screenY=0, but IE doesn't. Is there a way around? Thanks!! Sreeky
Aug 8, 2001 #2 Baski Programmer Aug 8, 2001 4 US function newWin(url,nwidth,nheight) { if (nwidth == null) { nwidth = 440; } if (nheight == null) { nheight = 300; } screenx = (screen.availWidth - nwidth) / 2; screeny = (screen.availHeight - nheight) / 2; var hWnd = window.open(url,"winLOV","toolbar=no,width="+nwidth+",height="+nheight+",left="+screenx+",top="+screeny+",resizable=0,scrollbars=yes,menubar=no,directories=no var hWnd = window.open(url,"winLOV","toolbar=no,width="+nwidth+",height="+nheight+",left="+screenx+",top="+screeny+",resizable=0,scrollbars=yes,menubar=no,directories=no" hWnd.focus(); } Also you need to call the function with the window size and other stuffs like, JavaScript:newWin("abc.jsp",600,375) Enjoy all the Best Baski. Upvote 0 Downvote
function newWin(url,nwidth,nheight) { if (nwidth == null) { nwidth = 440; } if (nheight == null) { nheight = 300; } screenx = (screen.availWidth - nwidth) / 2; screeny = (screen.availHeight - nheight) / 2; var hWnd = window.open(url,"winLOV","toolbar=no,width="+nwidth+",height="+nheight+",left="+screenx+",top="+screeny+",resizable=0,scrollbars=yes,menubar=no,directories=no var hWnd = window.open(url,"winLOV","toolbar=no,width="+nwidth+",height="+nheight+",left="+screenx+",top="+screeny+",resizable=0,scrollbars=yes,menubar=no,directories=no" hWnd.focus(); } Also you need to call the function with the window size and other stuffs like, JavaScript:newWin("abc.jsp",600,375) Enjoy all the Best Baski.
Aug 10, 2001 #3 baad Programmer Apr 10, 2001 1,481 RU wnd=window.open(blahblah) wnd.moveTo(0,0) regards, vic Upvote 0 Downvote