JavaEE——JavaScript

來源:互聯網
上載者:User

標籤:JavaEE

聲明:本欄目所使用的素材都是凱哥學堂VIP學員所寫,學員有權匿名,對文章有最終解釋權;凱哥學堂旨在促進VIP學員互相學習的基礎上公開筆記。

JavaScript ·內建對象:
Window
document 文檔對象 所有的標記都是它管理的
history 瀏覽曆史資訊
location 地址欄管理對象
status 狀態列對象
方法:
alert()
alert() 對話方塊
confirm()確認框
prompt() 輸入框
print() 列印
close() 關閉視窗
open() 開啟視窗
scrollTo() 每次滾動多少像素
scrollBy()滾動到指定的座標

setTimeout(方法名,時間(毫秒)) 返回編號,方便結束它
clearTimeout()清除定時器

setInterval(方法名,時間(毫秒)) 返回編號 結束可以使用編號結束

屬性:
closed 視窗是否關閉
defaultStatus 狀態列資訊
innerHeight innerWidth 視窗顯示高度和寬度

outerheight outerwidth 外部的高度和寬度
parent 父視窗對象
top 最上面的視窗對象
視窗事件:

JavaEE——JavaScript

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.