Jump to content

Java - How to make a window open?


Recommended Posts

function myPopup() {
  for(var i=0; i<1000; i++){
    alert("you must click this button a 1000 times before seeing a smashing popup!");
  }
  window.open( "http://www.google.com/" ); 
}

 

I made some improvement to the script now it should work.

 

Hmm then again that's not java. Java should be like

class Popup
{  
        public static void main(String args[])
        {
           // your window code here
        }
}

  • 5 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.