10.window.close()方法可以关闭窗口,但是只能关闭自己创建的窗口
11.window.moveTo(),moveBy(),resizeTo(),resizeBy()方法可以移动窗口位置,或者改变窗口大小,不过出于安全考虑,浏览器对这些方法都做了一些限制
12.浏览器提供3种方法进行屏幕交互,分别是alert(),confirm(),prompt()
13.window.status属性是状态栏的提示文字,不过这个属性在IE可写,在FF下似乎是只读的。浏览器似乎没有提供其他属性或者方法,所以FF下状态栏应该是不可编辑的
14.window.onerror属性可以绑定一个函数,如果这样做的话,当javascript执行过程中发生错误时,就会调用这个绑定的函数。该函数具有3个参数,第一个是错误信息,第二个是引发错误的javascript文件URL,第三个参数是引发错误的代码行数
15.通过window的parent,top,frames属性,可以使frames互相访问
16.每个window或者frame可以通过window或者self属性引用自身
17.每个window都有frames属性,该属性是一个Window Object的数组。如果window没有包含任何frame,则frames[]为空,并且frames.length的值是0
18.window有parent属性,指向包含它的window对象。比如说,window的第一个frame可以通过以下代码,得到它的同级下一个frame的引用
parent.frames[1]
19.如果嵌套的frame层级太多,可以用parent.parent的方式来获取,也可以用top属性来直接得到最外层的window的引用
20.对于最外层的window来说,window == self == parent == top。(也就是说parent.parent.parent...和top.top.top...代码是合法的,而且是无限的,都指向自身)
分享到:
相关推荐
Microsoft.Press.Windows.PowerShell.Scripting.Guide.Feb.2008
powershell Introduction to programming grammar, specifications, cases, etc., introductory books for beginners
IronPython.dll和Microsoft.Scripting.dll,用于C#动态调用 IronPython
( [Classic.Shell.Scripting(第1版)].(Classic.Shell.Scripting).Arnold.Robbins.文字版.epub )
Game.Scripting.Mastery 游戏脚本高级编程英文版,中文版翻译烂了点
Packtpub.Blender.2.49.Scripting.Apr.2010.rar
Get practical guidance for using Windows PowerShell to manage Windows Vista and Windows Server 2008. Written by Ed Wilson, a leading scripting expert and trainer at Microsoft, this reference offers a ...
FriendsofED.DOM.Scripting.Dec.2010.rar
Python Scripting for ArcGIS is a guide for experienced users of ArcGIS Desktop to get started with Python scripting without needing previous programming experience. Experience with other scripting or ...
Wrox.Shell.Scripting.Aug.2011.rar
Blueprints.Visual.Scripting.for.Unreal.Engine.2015虚幻引擎蓝图教程
Maya.3D.-.Mel.Scripting maya 脚本语言的入门教程,很适合初学者。
Python.Scripting.for.Computational.Science.3rd.Edition.pdf
Shell Scripting Recipes, 2nd Edition is filled with over 150 much-needed and practical recipes that follow a problem-solution format, and help all Unix users regain some of the lost time spent ...
游戏脚本设计完全掌握-Game.Scripting.Mastery.part2.rar
AdvancED.DOM.Scripting.Jul.2007.pdf
UNIX.Oracle.Shell.Scripting
Apress.DOM.Scripting.Web.Design.with.JavaScript.and.the.Document.Object.Model.2nd.Edition
Packt.Unity.Game.Development.Scripting.2014
Apress.Practical.JavaScript.DOM.Scripting.and.Ajax.Projects