tHE pRODiGY 2k2 Posted February 13, 2003 Share Posted February 13, 2003 on my site i have a code to make a java window pop up when i open my site. How can i change the position of the window. Changing it to the center for instance. The site url is www.divas2k.tk Link to comment Share on other sites More sharing options...
0 E32 Posted March 8, 2003 Share Posted March 8, 2003 Put this in the head of the popup and adjust the windowWidth and windowHeight to match the size of your popup: <script language="JavaScript"> windowWidth=200; windowHeight=100; if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2),(screen.height/2)-(windowHeight/2)); </script> Link to comment Share on other sites More sharing options...
0 CitruS Posted March 8, 2003 Share Posted March 8, 2003 Java is NOT Javascript and there aren't similar. Link to comment Share on other sites More sharing options...
0 E32 Posted March 9, 2003 Share Posted March 9, 2003 Java is NOT Javascript and there aren't similar. Okay... er... do you think from the problem he described, he might have just meant a 'javascript' window pop up? Take it easy, and don't drink so much 'java'. :) Link to comment Share on other sites More sharing options...
0 CitruS Posted March 9, 2003 Share Posted March 9, 2003 Okay... er... do you think from the problem he described, he might have just meant a 'javascript' window pop up? Take it easy, and don't drink so much 'java'. :) People need to know the different. If you thought US' president is Clinton, wouldn't someone tell you "Clinton is no longer our president"? Link to comment Share on other sites More sharing options...
0 Nautica Posted March 9, 2003 Share Posted March 9, 2003 it happens Link to comment Share on other sites More sharing options...
0 CyberKewl Posted March 9, 2003 Share Posted March 9, 2003 Well people tend to confuse between Java and Javascript quite a lot...they are different of course. But hey, he asked regarding a java window popup and although it could really mean a java popup instead of a javascript popup, it's more likely to be a JS one :) Link to comment Share on other sites More sharing options...
Question
tHE pRODiGY 2k2
on my site i have a code to make a java window pop up when i open my site. How can i change the position of the window. Changing it to the center for instance.
The site url is www.divas2k.tk
Link to comment
Share on other sites
6 answers to this question
Recommended Posts