本站首页    管理页面    写新日志    退出


«September 2023»
12
3456789
10111213141516
17181920212223
24252627282930


公告
Sorry,这里只是一个网络收藏夹,收藏一些不得不收藏的文章。

我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:万色返空
日志总数:37
评论数量:116
留言数量:-3
访问次数:320154
建立时间:2004年12月25日




[A.J.A.X]java script中关于window的方法列表
网上资源,  软件技术

尧天云 发表于 2006/8/4 9:49:55

ie里window的method列表 alert(sMsg) //弹出一个确认消息框 attachEvent(sEvent,pFunction) //绑定一个函数到某个事件,事件触发时随机执行其中一个被绑定的函数 blur() //令窗口丧失焦点 clearInterval(iIntervalID) //清除指定定时器的关联函数 clearTimeout(iTimeoutID) //清除指定延时器的关联函数 close() //关闭窗口,如果窗口不是用脚本打开的,会弹出确认对话框。 confirm([sMessage]) //弹出“确定/取消”对话框 createPopup([vArgs]) //创建一个隐藏的弹出式窗口,vArgs是未来考虑提供的参数,返回窗口句柄 detachEvent(sEvent,pFunction) //取消一个事件的某个绑定函数 execScript(sExpression, sLanguage) //用指定的语言执行代码 focus() //激活窗口 moveBy(iX,iY) //用相对方式移动窗口 moveTo(iLeft,iTop) //用绝对方式移动窗口 navigate(sURL) //转到指定的连接 open( [sURL] [, sName] [, sFeatures] [, bReplace]) //打开新窗口,并返回窗口句柄 //sName=(*_blank:打开一个新的未命名窗口;_parent:在父窗口中打开; _search:同时打开搜索窗口;_self:替换本窗口; _top:在顶级窗口里打开;*) //sFeatures=(*channelmode = { yes | no | 1 | 0 };directories = { yes | no | 1 | 0 };fullscreen = { yes | no | 1 | 0 };height = number;left = number;location = { yes | no | 1 | 0 };menubar = { yes | no | 1 | 0 };resizable = { yes | no | 1 | 0 };scrollbars = { yes | no | 1 | 0 };status = { yes | no | 1 | 0 };titlebar = { yes | no | 1 | 0 };toolbar = { yes | no | 1 | 0 };top = number;width = number;*) print() //打印当前窗口文档内容 prompt( [sMessage] [, sDefaultValue]) //弹出输入对话框 resizeBy(iX, iY) //以相对方式改变窗口大小 resizeTo(iWidth, iHeight) //以绝对方式改变窗口大小 scroll(iX,iY) 滚动窗口,与scrollTo一样的效果,出于兼容性的考虑保留下来的方法 scrollBy(iX, iY) //用相对方式滚动窗口 scrollTo(iX, iY) //用绝对方式滚动窗口 setActive() //激活目标而不将视线转向目标 setInterval(vCode, iMilliSeconds [, sLanguage]) //定时执行一段代码 setTimeout(vCode, iMilliSeconds, sLanguage) //延时执行一段代码 showHelp(sURL [, vContextID]) //打开一个帮助文件,sURL为帮助文档地址,vContextID为帮助索引号 showModalDialog(sURL [, vArguments] [, sFeatures]) showModalDialog(sURL [, vArguments] [, sFeatures]) //打开一个模式对话框 //vArguments=需要向新开模式对话框传递的参数 //sFeatures=(*dialogHeight:sHeight;dialogLeft:sXPos;dialogTop:sYPos; dialogWidth:sWidth;center:{ yes | no | 1 | 0 | on | off }; dialogHide:{ yes | no | 1 | 0 | on | off };edge:{ sunken | raised }; help:{ yes | no | 1 | 0 | on | off };resizable:{ yes | no | 1 | 0 | on | off }; scroll:{ yes | no | 1 | 0 | on | off };status:{ yes | no | 1 | 0 | on | off }; unadorned:{ yes | no | 1 | 0 | on | off };*) showModelessDialog(sURL [, vArguments] [, sFeatures]) //打开一个非模式对话框 //vArgument=需要向新开模式对话框传递的参数 //sFeatures=(*dialogHeight:sHeight;dialogLeft:sXPos;dialogTop:sYPos; dialogWidth:sWidth;center:{ yes | no | 1 | 0 | on | off }; dialogHide:{ yes | no | 1 | 0 | on | off };edge:{ sunken | raised }; help:{ yes | no | 1 | 0 | on | off };resizable:{ yes | no | 1 | 0 | on | off }; scroll:{ yes | no | 1 | 0 | on | off };status:{ yes | no | 1 | 0 | on | off }; unadorned:{ yes | no | 1 | 0 | on | off };*)


阅读全文(3779) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.031 second(s), page refreshed 144752330 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号