konithomimo
01-18-2005, 07:40 PM
How do you make a program open a web page and then after it has been used close all open webpages (assuming that pop-ups may have opened??
|
Click to See Complete Forum and Search --> : Opening webpages?? konithomimo 01-18-2005, 07:40 PM How do you make a program open a web page and then after it has been used close all open webpages (assuming that pop-ups may have opened?? ray326 01-18-2005, 11:36 PM You just open a connection to port 80 on the host server, issue HTTP requests, capture and parse the responses. Every connection is closed by the server after it sends its response. What you do with the responses is the raison d'etre of your program, eh? konithomimo 01-19-2005, 12:20 AM Im still a bit confused. Could you show me a snipet of source code that would open a specific webpage, leave it open for say 2 seconds and then close all webpages (assuming that popups may have opened)?? If you could then that would be helpful. I want to write a program that opens up web pages and closes them after a certain amount of time, and I am unaware of how to do it. I know how to do it with java script, but java is different than java script. Plus I want my program to run stand alone on windows, not off of a website. Thanks for any help. Khalid Ali 01-19-2005, 12:36 AM this does not sound like a Java program, I think you want JavaScript, please post in JavaScript forums if my guess is correct konithomimo 01-19-2005, 12:54 AM Like I said, I want it so that the internet doesnt have to be open for my program to run. I want to be able to store the program on my harddrive and then just click on the executable and have it run. Opening and closing a webpage is only part of what I want....and a small part at that. I want the program to be written in java. I tried the program in javascript, but it was too slow. I know that it will be faster using java because I have programmed in java before and it is much faster than using regular javascript in a website. Khalid Ali 01-19-2005, 09:08 AM in that case you may want to look to create a GUI with java swin, in that you shall be able to create links and they will be clickable... webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |