I would like to open a new window at Google.com, but then later close that window. My current code is as follows:
link="http://www.google.com"
try
{
AppletContext a = getAppletContext();
URL url = new URL(link);
a.showDocument(url,"_blank");
}
catch (MalformedURLException e)
{
System.out.println( e.getMessage() );
}
This opens the window, but how do I close it later?