原文发布时间为:2008-11-08 —— 来源于本人的百度文章 [由搬家工具导入]

<html>
<head>
<title>js</title>
<script type="text/JavaScript">
<!--
function Car(make,model,color){
this.make=make;
this.model=model;
this.color=color;
}

function openthat(){
window.open("js3.html","that","height=300,width=400,toolbar=yes,scrollbars=yes,directories=yes,location=yes menubar=yes,resizable=no,status=yes");
}

function timeout(){
document.write("time over");
}

function showdate(){
var dt=new Date();
document.getElementById("stime").innerText=dt.getSeconds();
}
var st=setInterval("showdate();",1000);

//-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
<!--

-->
</style></head>
<body background="../../图片/女孩子啊/de4149086dd0f2c562d98610.jpg">
<script type="text/JavaScript">
<!--
var car=new Car();
car.make="china";
car.model="003";
car.color="red";
for(var prop in car){
if(prop=="model")
     continue;
document.write(prop+"="+car[prop]+"<br>");

}
var car2=new Car();
with(car2){
make="English";
model="009";
color="yellow";
}
for(var prop in car2){
   document.write(prop+"="+car2[prop]+"<br>");
}

//var tm=setTimeout("timeout();",3000);

//-->
</script>

<a href="#" onClick="openthat();">js3de</a>
<br>
<a href="#" onClick="window.open('js3.html');">open</a>
<input type=button name="quit" value="close" onClick="window.close();">
<!-- <input type=button name="not" value="donot" onClick="clearTimeout(tm);"> -->
<p>&nbsp;</p>
<p><span id="stime"></span>
<input type=button name="stop" value="stop" onClick="clearInterval(st);">
<input type="button" name="goto" Value="GO TO" onClick="parent.js3.location.href='http://www.baidu.com'">
    <input type="button" name="goto" Value="Reflesh" onClick="parent.location.reload(true);">
<input type="button" name="goto" Value="Replace" onClick="parent.js3.location.replace('http://www.baidu.com');">
<input type="button" name="who" Value="frames" onClick="parent.frames[1].location.replace('http://www.baidu.com');">

</p>
<p>&nbsp; </p>
</body>
</html>

js4:with,for in语句,windows,location对象的使用的更多相关文章

  1. 2016/2/22 1、DOM的基本概念 2、Window对象操作 3、Windows.history对象 4、Window.location对象 5、Window.status对象

    1.DOM的基本概念 DOM是文档对象模型,这种模型为树模型:文档是指标签文档:对象是指文档中每个元素:模型是指抽象化的东西. 2.Window对象操作 一.属性和方法: 属性(值或者子对象): op ...

  2. 【2017-03-28】JS基础、windows对象、history对象、location对象

    一.JS基础 JS - javaScript 1.js功能: 1).进行数据的运算.2).控制浏览器的一些功能.3).控制元素(属性.内容.样式) js引用位置: 可以放在html页的任意位置. 推荐 ...

  3. History对象和location对象

    history对象 History对象包含用户在浏览器窗口中访问过的url.不是所有浏览器都支持该对象. 属性length   返回浏览器历史列表中的URL数量. 方法:back() 加载histor ...

  4. JavaScript -- 时光流逝(十):Screen 对象、History 对象、Location 对象

    JavaScript -- 知识点回顾篇(十):Screen 对象.History 对象.Location 对象 1. Screen 对象 1.1 Screen 对象的属性 (1) availHeig ...

  5. JS BOM对象 History对象 Location对象

    一.BOM对象 BOM(浏览器对象模型),可以对浏览器窗口进行访问和操作 window对象 所有浏览器都支持 window 对象. 概念上讲.一个html文档对应一个window对象. 功能上讲: 控 ...

  6. JS 中document.URL 和 windows.location.href 的区别

    实际上,document 和 windows 这两个对象的区别已经包含了这个问题的答案. document 表示的是一个文档对象,windows 表示一个窗口对象.  一个窗口下面可以有很多的docu ...

  7. js 的Location对象

    Location对象 location用于获取或设置窗体的URL,并且可以用于解析URL. 语法: location.[属性|方法] location对象属性图示: location 对象属性: ha ...

  8. location对象

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...

  9. 使用Location对象查询字符串参数

    location是BOM中最有用的对象之一: 1.它提供了与当前窗口中加载的文档有关的信息: 2.他还提供了一些导航功能. location对象的属性有: hash, host, hostname, ...

  10. BOM之location对象

    定义 location提供了与当前窗口中加载的文档有关的信息,还提供了一些导航功能.location是一个很特别的对象,因为它既是window对象的属性,也是document对象的属性.换句话说,wi ...

随机推荐

  1. celery:Unrecoverable error: AttributeError("'unicode' object has no attribute 'iteritems')

    环境描述 python2+django1.9下使用celery异步处理耗时请求. celery使用的是celery-with-redis这个第三方库,版本号为3.0. pip install cele ...

  2. 【前端_js】ajax的应用

    1.设置请求头部 function makeRequest() { alert("inside makeRequest()"); var settings = { type: &q ...

  3. mysql切换数据库提示警告:Reading table information for completion of table and column names

    登录数据库后,选择数据库时发现以下提示, mysql> use testReading table information for completion of table and column ...

  4. ecshop里提出来的js常用函数

    目录 Utils.js jquery.listTable.js 使用例子: ecshop里提出来的js常用函数 Utils.js /* $Id : utils.js 5052 2007-02-03 1 ...

  5. yii2初步讲解 验证规则

    http://www.yii-china.com/post/detail/9.html

  6. 关于Linux系统下zookeeper集群的搭建

    1.集群概述 1.1什么是集群 1.1.1集群概念 集群是一种计算机系统, 它通过一组松散集成的计算机软件和/或硬件连接起来高度紧密地协作完成计算工作.在某种意义上,他们可以被看作是一台计算机.集群系 ...

  7. Pychram基本操作

    1. 更改pychram页面为黑色背景主题.更改主题: File ->Settings -> Editor -> Color Scheme -> Scheme -> Mo ...

  8. [Uva623]500!(高精)

    Description 求N! \(N \leq 1000\) Sample Input 10 30 50 100 Sample Output 10! 3628800 30! 265252859812 ...

  9. Android Studio 快捷键(包含自定义)终极版

      [F] [F] F2 在错误代码之间切换 F3 往前定位(Shift + F3:往后定位 )有问题 F4\Ctrl+鼠标点击\Ctrl+B 转到定义,查看类继承关系 F5 但不调试进入函数内部. ...

  10. IIS6.0,Apache低版本,PHP CGI 解析漏洞

    IIS6.0解析漏洞 在IIS6.0下存在这样的文件"名字.asp;名字.jpg" 代表了jpg文件可以以asp脚本类型的文件执行. 根据这个解析漏洞我们可以上传这种名字类型的图片 ...