• 0

Java pop up ?


Question

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

  • 0

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

  • 0
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

  • 0
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

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.