1.客户端javascript提供了setTimeout()和setInterval()这2个方法来支持java中的TimerTask
2.Location是地址对象,可以通过window.location访问到,其中包含protocol,href等属性
3.通过给location赋值,可以使浏览器载入另一个地址,默认是相对路径
4.location.replace(url),这个方法可以载入指定的url,但是会替换掉历史浏览记录中的当前记录,而不是创建一条新记录,这造成浏览器的back按钮不可用
5.History对象是历史浏览记录,可以通过window.history访问。不过出于安全和隐私的考虑,这个对象没有实现设计的初衷。尽管如此,该对象还是提供了back()和forward()方法, 效果和点击浏览的按钮是一样的
6.Screen是屏幕对象,可以通过window.screen访问。这个对象提供了关于尺寸和颜色的一些信息
7.Navigator是浏览器对象,可以通过window.navigator属性来访问。该对象提供了浏览器有关的信息,在判断浏览器类型的时候可以用到。要注意的是,navigator里提供的属性,不一定是可靠的
8.window.open()方法会创建弹出窗口。出于用户体验的考虑,这个方法只能在响应用户操作的时候使用,如果不是响应用户操作,则会失败。(被浏览器拦截)此方法接受4个可选的参数,第一个是URL,如果为空,则打开新窗口;第二个参数是window的名称,如果该名称已经存在,则open方法返回该窗口的引用,而不是打开一个新窗口;第三个参数是新窗口的打开选项;第四个参数只有在第二个参数是已存在的window name时才有效,如果true,则在历史浏览记录里替换当前记录,如果是false,则在历史浏览记录里创建一条新记录(默认行为)
9.window.open()方法的返回值是新打开的window的引用,opener属性反向指向打开它的窗口。如果一个窗口是用户打开的,而不是javascript代码打开的,那么这个属性的值是null
分享到:
相关推荐
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