用java关闭已经打开的浏览器,不用js....
------解决方案--------------------
try {
Process p = Runtime.getRuntime().exec("taskkill /im iexplore.exe");
p.waitFor();
p.destroy();
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
e.printStackTrace();
}
楼主试试看吧。