Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setScreenSize(width, height){
- window.resizeTo(width,height);
- window.moveTo((window.screen.availWidth - width)/2, (window.screen.availHeight - height)/2);
- }
- $(window).load(function () {
- setScreenSize(500,500);
- });
Add Comment
Please, Sign In to add comment