下面是一个窗体自动关闭功能,可以刷新,但是不能关闭浏览器,
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
var i=3;
function clock(){
i=i-1;
if(i>0){
document.getElementById("statisticsDiv").innerHTML="本窗口将在<font color='#FF3300'>"+i+"</font>秒后自动关闭!";
window.setInterval("clock();",1000);
}else{
window.opener=null;
window.open('', '_self', '');
window.close(); }
}
</script><body onload="clock()">
<p> </p>
<div id="statisticsDiv"></div>
</body>
</html>html如何关闭安卓浏览器
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<script type="text/javascript">
var i=3;
function clock(){
i=i-1;
if(i>0){
document.getElementById("statisticsDiv").innerHTML="本窗口将在<font color='#FF3300'>"+i+"</font>秒后自动关闭!";
window.setInterval("clock();",1000);
}else{
window.opener=null;
window.open('', '_self', '');
window.close(); }
}
</script><body onload="clock()">
<p> </p>
<div id="statisticsDiv"></div>
</body>
</html>html如何关闭安卓浏览器
解决方案 »
- [Android Robotium]修改apk签名后install, Run As Android JUnit Test出错
- 菜鸟提问:关于android工程问题
- 拿手机学下sqlite数据库,可是linux下查看data目录出现以下情况:
- adobe android pdf
- 求教,如何实现一个类似于Timepicker控件的东西,要求能实现秒的选择,请大侠指点
- android开发java平台问题
- Android应用程序运行出错
- 视频播放问题
- 遇到一个奇怪的问题,为何配置了ID,突然在R类中,没有更新?
- 用环境变量实现了静默安装,原理不明白,请高人解释。
- android视频通话实现方法,请教!!!
- android 下用EditText 实现类似邮箱增加、删除收件人的功能
我想你也别想了吧,浏览器的控制权不可能交给你的