张孝祥js-window的方法事件和对象

window函数:
.confirm()
.prompt()
.navigate()
.setInterval()
.setTimeout()
.clearInterval()
.clearTimerout()
.moveTo()
.resizeTo()
.open()
.showModalDialog()
.showModelessDialog()
window事件:
 onload 发生在页面下载并装载完成之后发生。
 unonload
 onbeforeUnload="window.event.returnValue()"
 onKeypress
window的对象
 event:
  altkey, shiftkey,ctrlkey
  clientx,clienty
  offsetX,offsetY
  screenx,screeny
  x,y
  returnValue(false时取消处理。)
  cancelBubble(可以取消窗口对事件的处理)
  srcElement
  keyCode
  button(1-鼠标左按钮。。。)

 screen
 navigate
 location
 frames parent top
  parent:父窗口
   window.parent.frames[1].location.reload();
   parent["framename"].location.reload();
  top:最顶层的窗口
 clipboard
 history
 document

 

posted @ 2007-11-11 20:51  老大卫  阅读(5484)  评论(0编辑  收藏  举报