1:窗口时间

confirm(str):确认对话框,确认返回trun,取消返回false,但是必须要有两个return;不然就算按下取消也会提交

第一个return:用于保证确认按钮运行

<script>
function update(){
var r = confirm("go on updating?");
return r;
}
</script>

第二个return:用于保证取消按钮也能运行

<form>
<input type="text" name="user"/>
<input type="submit" value="提交" onclick="return update()">
</form>

全部代码:

<!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>window对象</title>
<script>
function update(){
var r = confirm("go on updating?");
return r; }
</script>
</head> <body>
<form>
<input type="text" name="user"/>
<input type="submit" value="提交" onclick="return update()">
</form>
</body>
</html>

代码效果:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAO4AAAAxCAIAAABS5AKPAAADQUlEQVR4nO3cz0/aYBzH8e9/0xr4V0S49O8gYukNPGIvBEGMV/C2LDFMzRLjxR/xuGwxZBlZNJUsyLroRsGkkGwH6qCU5/GZcS0++bzSw2Of5+HnOw2XSr8BpEBRvwCAl4GUQRJIGSSBlEESSFkq5XLZMIx0pAzDKJfL4b93X8pX19bR8cmbt+9wLPJxdHxydW0Fv8sN0yyVSp1OZxSpTqdTKpU2TDOshj2+lK2b7q19H/IrgH91a9+3rr4Fz+u63u12Xdf9FSnXdbvdrq7rIX8ssymH/PTwPHNTTqfTo9Eo2o7HRqNROp0O+TNByq8SK+XhcPhzAQyHQ6QMQjgp3y8ApAyikHIQUn6VOCnfcV2sx+PrF96IZngzwS2MGSakDKJYKbuu+4PrPB+P58/9I8+u5v/bt4m0Xf4D+7iui5RBCCdlm6muTV2A8/V88KqcP7Nt2z4LzgR4SxmQMoh6VspeppNg/T3WtUCfdY20enDrk5AyiOKk/J3rNBeL5XIaabXTXGz2UhvLnU4trWlEWs23u6bNrGFAyiCKlfJgMPjKs5MiIkrtcBc9LkwZxtKS8X763JJhpAT2DwYDpAxCOCm3WA6zKiWzWVXNHrYOsyrjR/DjbHK71Wq1tpPeoDU5OZllQsogipPyF64DXVX1A9+papKSVeaGx9lqkmY3siFlEPUCKR/o6rjganLqojwnam9ePGSkDOJYKff7/c9c+2uqurY/HtB4tLVCK1u8Dd4vj7V9/kNP6ff7SBmEcFJucjUyipJpNJuVBCUqlQSRkskkKFGZs7SSICL6O9fIKESkZBr8J2g2m80mUgZRrJQdx7lk2lwmIlJW9zaXSVndmz45sbx5ubeqeKMgb26yfy7HcZAyCHlWyuFByiCKk/KnBYCUQRQr5V6v93EB9Hq96FPGvX2Lj3Nvn2VZtm1/iJRt25ZlRXxvn+M83Nze4Vj8w3Eegt+laZrFYrHdbvci1W63i8WiGe0d1/DaFQoFXdf/53+5eJqu64VCIfz3jpRBEkgZJIGUQRJIGSSBlEESSBkkgZRBEkgZJIGUQRJIGSSBlEESSBkkgZRBEkgZJIGUQRJIGSSBlEESSBkkgZRBEn8AUWUWU0fjqi4AAAAASUVORK5CYII=" alt="" />

提交之后:最终保证confirm顺利执行

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYUAAAERCAIAAAAbtixKAAASWElEQVR4nO2dTW8b19mG5+dQsAH/ATVOu3Czk4QA9KLQD2BXXojRzowjw7VciZxPB27yJqg/9hJgB0rRoEVlI4vWjtMqrqAX3hjGC8cSkSqyDVg24Hcx/BgOKZWUDmee88x1Q7Apaq7hjMBzY2Z45pJzZWnZC8IoirwgvLK0HIZRFEWuFywtN6IoiqKo3vDqDS9+vLTccD0/iqIwjAABAQHNgo4XhH4QBWHkB1H8OP5KPA799uP+BQABAQFNgU4URUEYLV75vR9EURS5fnBlablVb663VG9V3XK9UXdbVXdladn1AkBAQECzoHNAsQ1bcoCAgICmQKfnXO73Rz0JBAQEBDw26IRh5AeR6wd+EIVh5Aeh57fO7rwg9PwwCKMgjDw/9IKwdcrnh34QAgICApoFnSiK/CC6srTsB1EURZ4fduqt4fr1htuuOr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LWAgIBSQHy1gICAUkDmHwECAkoB8dUCAgJKAfHVAgICSgHx1QICAkoB8dUCAgJKAfHVAgICSgHx1QICAkoB8dUCAgJKAfHVAgICSgHx1QICAkoB8dUCAgJKAblfBBAQUAqIrxYQEFAKiK8WEBBQCoivFhAQUAqIrxYQEFAKiK8WEBBQCoivFhAQUAqIrxYQEFAKyPwjQEBAKSC+WkBAQCkgvlpAQEApIL5aQEBAKSC+WkBAQCkgvlpAQEApIL5aQEBAKSC+WkBAQCkgvlpAQEApIL5aQEBAKSC+WkBAQCkg94sAAgJKAfHVAgICSgHx1QICAkoB8dUCAgJKAfHVAgICSgHx1QICAkoB8dUCAgJKAfHVAgICSgGZfwQICCgF/H9JJsB17c0hFgAAAABJRU5ErkJggg==" alt="" width="307" height="215" />

2:页面控制:window.open()控制打开页面

1:按钮控制打开多个

2:按钮控制打开一个,后面加上该网页的内容

<body>
<input type="button" value="可重复打开新的窗口" onclick="window.open('window对象.html')"/>
<input type="button" value="只能打开一个新的窗口" onclick="window.open('window对象.html','window对象')"/>
</body>

变成超链接的方式:

<a href="javascript:window.open('window对象.html','window对象')">windows对象</a>

打开网页的三种方式:

1:替换当前页面:

2:重复打开同一个连接:

3:同一个链接只能打开一次:

<p><a href="window对象.html">替换当前页面</a></p>
<p><a href="window对象.html" target="_blank">打开另一个选项卡</a></p>
<p><a href="#"onclick="javascript:window.open('window对象.html','window对象')">只能打开一次</a></p>

定时器对象:

多用于网页动态时钟,制作倒计时,跑马灯效果

周期性时钟:页面的倒计时

一次性时钟:等5s后关闭页面

往网页里面写回东西:

var s = hour+'小时'+minute+'分钟'+second+'秒';
h1.innerHTML = s;//任意元素中间的

页面一打开就执行函数:

window.addEventListener('load',miaosha,false)

秒杀:

var timer;
var miaosha = function(){
var h1 = document.getElementById("time");
var now= new Date();
//距离6点开始抢购
var hour = 19-now.getHours()-1;
var minute=59- now.getMinutes();
var second = 59- now.getSeconds();
var s = hour+'小时'+minute+'分钟'+second+'秒';
h1.innerHTML = s;//任意元素中间的正文 }
window.addEventListener('load',timerStart,false) function timerStart(){
timer = window.setInterval(miaosha,1000);
}

在JavaScript中,===表示完全相等,需要判断一个变量未定义,必须给他加上===等号

function stopTimer(){
if(timer===undefined)
timer = window.setInterval(miaosha,1000);
else
timer=clearInterval(timer); }

页面5s后关闭:

var timere;
function timeFunc(){
var h1= document.getElementById("h1");
var n =parseInt(h1.innerHTML);
h1.innerHTML = (n-1)+"s后自动关闭"
}
function startTimer(){
timere = setInterval(timeFunc,1000);
}
window.addEventListener('load',startTimer,false);

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" />
<script src="页面5秒关闭.js"></script>
<title>myAlert</title>
</head> <body>
<h1 id="h1">5s后自动关闭</h1>
留在此页面,请点击
<a href="#">这里</a>
</body>
</html>

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhcAAACHCAIAAAAqQux1AAAOH0lEQVR4nO3dT2gb6RnHcd10EMXkIAoxizCmhGKMDvYhJJTFOmxZFsTmEEwgogejxQurQwxLwYf4UlMGE1/qgCkkOZiwBBsi8HopaQUGwwaW1FREEBPWXbxeislBlOKDbtPDjKT3nXnn3yPJtuzvhz1srNHo1Rien99/MykbAACp1Hk3AAAwxEgRAIAcKQIAkCNFAABypAgAQI4UAQDIkSIAADlSBAAgR4oAAORIEQCAHCkCAJAjRQAAcqQIAECOFAEAyJEiAAA5UgQAIEeKAADkSBEAgBwpAgCQI0UAAHKkCABAjhQBAMiRIgAAOVIEACBHigAA5EgRAIAcKQIAkCNFAAByQ58ipx+Ojo7eff/t5ubjh+XyvcJEbnQkM73aSHqenbnMyGgud7NYLj98vLn5t3pzEK3tqJZSHXkrcWtt27Zbx7tLH09VXp2EH9ZY/Xjq/trucSvRuZtva48XCmOjpepgrwOAY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3ivaPHAlAAAAAElFTkSuQmCC" alt="" width="421" height="106" />

JavaScript对象(窗口对象 定时器对象 )的更多相关文章

  1. 使用JavaScript闭包,以工厂模式实现定时器对象

    原始对象写法 一般工作中写Javascript代码,主要写全局函数,并组织函数之间的调用,确实比较低级, 于是想利用面向对象的思想应用到JS编码中. 在火狐浏览器开发者网站上,看到一个实例利用对象技术 ...

  2. JavaScript BOM-11-BOM的核心-window对象; window对象的控制,弹出窗口方法; 超时调用; 间歇调用; location对象常用属性; 位置操作--location.reaplace,location.reload(); BOM中的history对象; Screen对象及其常用属性; Navigator对象;

    JavaScript BOM 学习目标 1.掌握什么是BOM 2.掌握BOM的核心-window对象 3.掌握window对象的控制.弹出窗口方法 什么是bom BOM(browser object ...

  3. JavaScript学习07 内置对象

    JavaScript内置对象 图像对象 导航对象 窗口对象 屏幕对象 事件对象 历史对象 文件对象(重要) 锚点对象 链接对象 框架对象 表单对象(重要) 位置对象 JS Window 窗口对象:ht ...

  4. javascript中的内置对象

    2015.12.1 javascript中的内置对象 复习: 1.js中的内置函数 alert prompt write parseInt parseFloat eval isNaN document ...

  5. JavaScript的BOM(浏览器对象)基础语法总结

    1.window对象是BOM的核心,window对象指当前的浏览器窗口. window对象方法: 2.history对象记录了用户曾经浏览过的页面(URL),并可以实现浏览器前进与后退相似导航的功能. ...

  6. JavaScript 事件 事件流 事件对象 事件处理程序 回调函数 error和try...catch和throw

    参考资料: 慕课网 DOM事件探秘    js事件对象 处理 事件驱动: JS是采用事件驱动的机制来响应用户操作的,也就是说当用户对某个html元素进行操作的时候,会产生一个时间,该时间会驱动某些函数 ...

  7. JavaScript基础知识(对象、函数与对象)

    17.对象 属性:描述对象的信息  方法:描述对象的行为  封装:只关心输入和输出(不管过程如何实现) ü 对象的分类: 内置对象(原生对象): 就是JavaScript语言预定义的对象(如Strin ...

  8. C#中三种定时器对象的比较 【转】

    https://www.cnblogs.com/zxtceq/p/5667281.html C#中三种定时器对象的比较 ·关于C#中timer类 在C#里关于定时器类就有3个1.定义在System.W ...

  9. 1.4(JavaScript学习笔记) window对象的属性及方法

    一.window对象 window对象代表当前窗口,所有全局对象都是windows的属性, 例如document是window的属性,window.document.writer("&quo ...

随机推荐

  1. Control character in cookie value, consider BASE64 encoding your value

    这是因为你给Cookie设置了中文的value,比如Cookie c = new Cookie("user", "张三");

  2. ubuntu下安装与测试mysql

    1.在决定安装mysql之前,要先确定系统是否已经安装mysql. 输入: 1 mysql 结果:说明尚未安装mysql The program 'mysql' is currently notins ...

  3. zoj 3165 (最小割,最大点权独立集)

    胡伯涛的<最小割模型在信息学竞赛中的应用>写的真牛. 这道题是选择一些男孩和女孩参加party,邀请的男孩女孩之间不能有 8g,图就是个明显的二分图,就是选择一些点之间没有8g关系,就是二 ...

  4. svn服务器及客户端安装使用

    一.服务器安装: 1.yum install subversion   2.输入rpm -ql subversion查看安装位置,如下图:   我们知道svn在bin目录下生成了几个二进制文件. 输入 ...

  5. Win 10 连接公司VPN后不能上Internet外网

    当前用户配置 %AppData%\Microsoft\Network\Connections\Pbk 与所有用户共享配置 %ProgramData%\Microsoft\Network\Connect ...

  6. Python学习之类

    class Person: def __init__(self, name): self.name = name def sayHi(self): print('Hello, my name is'+ ...

  7. [HIHO1260]String Problem I(trie树)

    题目链接:http://hihocoder.com/problemset/problem/1260 n个字符串,m次询问.每次询问给一个字符串,问这个字符串仅可以在一个地方加一个字母.这样操作后与n个 ...

  8. 网易新闻页面信息抓取 -- htmlagilitypack搭配scrapysharp

    最近在弄网页爬虫这方面的,上网看到关于htmlagilitypack搭配scrapysharp的文章,于是决定试一试~ 于是到https://www.nuget.org/packages/Scrapy ...

  9. 上海二手房8月排名:链家、悟空找房、中原、太平洋、我爱我家、易居、房天下、iwjw、房多多、房好多、q房网、、、

    房产网站总结 链家: 悟空找房: 中原: 太平洋: 我爱我家: 易居: 房天下: iwjw:有较多二手房信息 链家称王 房多多领跑电商平台 近日,云房数据公布了8月上海房产中介成交数据,从排行榜来看, ...

  10. 点滴积累【JS】---JS小功能(createElement和insertBefore添加div下面的节点)

    效果: 代码: <head runat="server"> <title></title> <script type="text ...