21.可以给window和frame指定name属性,这样做的目的是在<a>和<form>标签中,可以指定浏览器在哪个窗口显示链接,或者提交表单
<a href="chapter01.html" target="mainwin">Chapter 1, Introduction</a>
22.给frame指定了name属性以后,会在window中创建同名的属性,这个属性指向该frame
parent.table_of_contents
parent.frames[1]
可以看到,这样获取frame对象,比用数组index来得方便,也更加直观
23.每个window和frame都有各自独立的execution context,也就是scope chain。所以
每个window和frame都有各自的global object,即window对象。但是通过parent.frames[0].i,frame可以读取到另一个frame中定义的变量或者方法。但是需要注意的是,由于function是文法作用域,而不是动态作用域,所以当在frameB中调用frameA中定义的函数f时,f是在frameA的scope chain上查找属性,而不是在frameB的scope chain上查找
分享到:
相关推荐
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