Full version: jsB@nk » Snippet » Center Window in all resolutions and Alway on Top
URL: https://www.javascriptbank.com/center-window-in-all-resolution-and-alway-on-top.html
This JavaScript will open a new window at center position in all resolutions. Beside, it focuses by itself every second.
Full version: jsB@nk » Snippet » Center Window in all resolutions and Alway on Top
URL: https://www.javascriptbank.com/center-window-in-all-resolution-and-alway-on-top.html
<SCRIPT>// Center Window in all resolution by Thái Cao Phong// Copyright by JavaScriptBank.com// 17-07-2006// check resolution of your browservar X = screen.availWidth/3,Y = screen.availHeight/3;// move window to center positionself.moveTo(X,Y);// resize window to 1/3 of screen sizeself.resizeTo(X,Y)// focus itself every secondStayTop=setInterval('self.focus()',1000)</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->