plznty Posted August 3, 2009 Share Posted August 3, 2009 function myPopup() { window.open( "http://www.google.com/" ) } How can I make it so that can be used. On a function so that the window opens. Thats the procedure so i basically need the variable thing for an outcome. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/ Share on other sites More sharing options...
Maq Posted August 3, 2009 Share Posted August 3, 2009 Do you want to do this in Java or Javascript? Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-890100 Share on other sites More sharing options...
plznty Posted August 3, 2009 Author Share Posted August 3, 2009 java . Is that not the java command for it? if not could u tell me please. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-890105 Share on other sites More sharing options...
corbin Posted August 4, 2009 Share Posted August 4, 2009 Errrrr... That is definitely not Java. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-890303 Share on other sites More sharing options...
Maq Posted August 4, 2009 Share Posted August 4, 2009 What kind of window do you want? What GUI framework are you using? What IDE are you using? When do you want it to open? Do you have any Java experience? (I assume no) We need more information. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-890522 Share on other sites More sharing options...
RichardRotterdam Posted August 4, 2009 Share Posted August 4, 2009 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 } } Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-890624 Share on other sites More sharing options...
Maq Posted August 4, 2009 Share Posted August 4, 2009 I was under the impression he was using Java. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-890626 Share on other sites More sharing options...
waynew Posted September 2, 2009 Share Posted September 2, 2009 Definitely not Java. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-911246 Share on other sites More sharing options...
captbeagle Posted September 9, 2009 Share Posted September 9, 2009 This looks like another instance of someone not understanding the difference between Javascript and Java. The OP definitely looked far more like the former than any Java I've seen. Quote Link to comment https://forums.phpfreaks.com/topic/168710-java-how-to-make-a-window-open/#findComment-915269 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.