第265页 THE SCREEN OBJECT
byhard (byhard.com)
- 章节名:THE SCREEN OBJECT
- 页码:第265页
window.resizeTo(screen.availWidth, screen.availHeight); THE HISTORY OBJECT Because history is a property of window, each browser window, tab, and frame has its own history object relating specifically to that window object. 数字参数 //go back one page history.go(-1); //go forward one page history.go(1); //go forward two pages history.go(2); 字符串参数 //go to nearest wrox.com page history.go(“wrox.com”); //go to nearest nczonline.net page history.go(“nczonline.net”); back和forward方法 //go back one page history.back(); //go forward one page history.forward(); length属性: if (history.length == 0){ //this is the first page in the user’s window }
byhard对本书的所有笔记 · · · · · ·
-
第255页 THE LOCATION OBJECT
window.location & document.location 指向同一个对象 属性: hash "#cont...
-
第259页 THE NAVIGATOR OBJECT
浏览器属性: Detecting Plug-ins 查找插件,插件属性: name description filename length 比...
-
第265页 THE SCREEN OBJECT
-
第271页 CAPABILITY DETECTION
能力检测:比如判断是否支持函数:document.getElementById function getElement(id){ if (do...
-
第275页 The Complete Script
The Complete Script var client = function(){ //rendering engines var engine = { ie: 0, ...
说明 · · · · · ·
表示其中内容是对原文的摘抄