<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [https://www.runoob.com/jsref/obj-window.html](https://www.runoob.com/jsref/obj-window.html) [https://developer.mozilla.org/zh-CN/docs/Web/API/Window](https://developer.mozilla.org/zh-CN/docs/Web/API/Window) 文檔加載完畢后執行 ``` window.onload=function(){ } ``` ## Window 對象屬性 | 屬性 | 描述 | | :-- | :-- | | [closed](https://www.runoob.com/jsref/prop-win-closed.html) | 返回窗口是否已被關閉。 | | [defaultStatus](https://www.runoob.com/jsref/prop-win-defaultstatus.html) | 設置或返回窗口狀態欄中的默認文本。 | | [document](https://www.runoob.com/jsref/dom-obj-document.html) | 對 Document 對象的只讀引用。(請參閱[對象](https://www.runoob.com/jsref/dom-obj-document.html)) | | [frames](https://www.runoob.com/jsref/prop-win-frames.html) | 返回窗口中所有命名的框架。該集合是 Window 對象的數組,每個 Window 對象在窗口中含有一個框架。 | | [history](https://www.runoob.com/jsref/obj-history.html) | 對 History 對象的只讀引用。請參數[History 對象](https://www.runoob.com/jsref/obj-history.html)。 | | [innerHeight](https://www.runoob.com/jsref/prop-win-innerheight.html) | 返回窗口的文檔顯示區的高度。 | | [innerWidth](https://www.runoob.com/jsref/prop-win-innerheight.html) | 返回窗口的文檔顯示區的寬度。 | | [localStorage](https://www.runoob.com/jsref/prop-win-localstorage.html) | 在瀏覽器中存儲 key/value 對。沒有過期時間。 | | [length](https://www.runoob.com/jsref/prop-win-length.html) | 設置或返回窗口中的框架數量。 | | [location](https://www.runoob.com/jsref/obj-location.html) | 用于窗口或框架的 Location 對象。請參閱[Location 對象](https://www.runoob.com/jsref/obj-location.html)。 | | [name](https://www.runoob.com/jsref/prop-win-name.html) | 設置或返回窗口的名稱。 | | [navigator](https://www.runoob.com/jsref/obj-navigator.html) | 對 Navigator 對象的只讀引用。請參數[Navigator 對象](https://www.runoob.com/jsref/obj-navigator.html)。 | | [opener](https://www.runoob.com/jsref/prop-win-opener.html) | 返回對創建此窗口的窗口的引用。 | | [outerHeight](https://www.runoob.com/jsref/prop-win-outerheight.html) | 返回窗口的外部高度,包含工具條與滾動條。 | | [outerWidth](https://www.runoob.com/jsref/prop-win-outerheight.html) | 返回窗口的外部寬度,包含工具條與滾動條。 | | [pageXOffset](https://www.runoob.com/jsref/prop-win-pagexoffset.html) | 設置或返回當前頁面相對于窗口顯示區左上角的 X 位置。 | | [pageYOffset](https://www.runoob.com/jsref/prop-win-pagexoffset.html) | 設置或返回當前頁面相對于窗口顯示區左上角的 Y 位置。 | | [parent](https://www.runoob.com/jsref/prop-win-parent.html) | 返回父窗口。 | | [screen](https://www.runoob.com/jsref/obj-screen.html) | 對 Screen 對象的只讀引用。請參數[Screen 對象](https://www.runoob.com/jsref/obj-screen.html)。 | | [screenLeft](https://www.runoob.com/jsref/prop-win-screenleft.html) | 返回相對于屏幕窗口的x坐標 | | [screenTop](https://www.runoob.com/jsref/prop-win-screenleft.html) | 返回相對于屏幕窗口的y坐標 | | [**screenX**](https://www.runoob.com/jsref/prop-win-screenx.html) | 返回相對于屏幕窗口的x坐標 | | [sessionStorage](https://www.runoob.com/jsref/prop-win-sessionstorage.html) | 在瀏覽器中存儲 key/value 對。 在關閉窗口或標簽頁之后將會刪除這些數據。 | | [**screenY**](https://www.runoob.com/jsref/prop-win-screenx.html) | 返回相對于屏幕窗口的y坐標 | | [self](https://www.runoob.com/jsref/prop-win-self.html) | 返回對當前窗口的引用。等價于 Window 屬性。 | | [status](https://www.runoob.com/jsref/prop-win-status.html) | 設置窗口狀態欄的文本。 | | [top](https://www.runoob.com/jsref/prop-win-top.html) | 返回最頂層的父窗口。 | ## Window 對象方法 | 方法 | 描述 | | :-- | :-- | | [**alert**()](https://www.runoob.com/jsref/met-win-alert.html) | 顯示帶有一段消息和一個確認按鈕的警告框。 | | [atob()](https://www.runoob.com/jsref/met-win-atob.html) | 解碼一個 base-64 編碼的字符串。 | | [btoa()](https://www.runoob.com/jsref/met-win-btoa.html) | 創建一個 base-64 編碼的字符串。 | | [blur()](https://www.runoob.com/jsref/met-win-blur.html) | 把鍵盤焦點從頂層窗口移開。 | | [**clearInterval**()](https://www.runoob.com/jsref/met-win-clearinterval.html) | 取消由 setInterval() 設置的 timeout。 | | [**clearTimeout**()](https://www.runoob.com/jsref/met-win-cleartimeout.html) | 取消由 setTimeout() 方法設置的 timeout。 | | [close()](https://www.runoob.com/jsref/met-win-close.html) | 關閉瀏覽器窗口。 | | [**confirm**()](https://www.runoob.com/jsref/met-win-confirm.html) | 顯示帶有一段消息以及確認按鈕和取消按鈕的對話框。 | | [createPopup()](https://www.runoob.com/jsref/met-win-createpopup.html) | 創建一個 pop-up 窗口。 | | [focus()](https://www.runoob.com/jsref/met-win-focus.html) | 把鍵盤焦點給予一個窗口。 | | getSelection() | 返回一個 Selection 對象,表示用戶選擇的文本范圍或光標的當前位置。 | | [**getComputedStyle**()](https://www.runoob.com/jsref/jsref-getcomputedstyle.html) | 獲取指定元素的 CSS 樣式。 | | [matchMedia()](https://www.runoob.com/jsref/met-win-matchmedia.html) | 該方法用來檢查 media query 語句,它返回一個 MediaQueryList對象。 | | [moveBy()](https://www.runoob.com/jsref/met-win-moveby.html) | 可相對窗口的當前坐標把它移動指定的像素。 | | [moveTo()](https://www.runoob.com/jsref/met-win-moveto.html) | 把窗口的左上角移動到一個指定的坐標。 | | [open()](https://www.runoob.com/jsref/met-win-open.html) | 打開一個新的瀏覽器窗口或查找一個已命名的窗口。 | | [print()](https://www.runoob.com/jsref/met-win-print.html) | 打印當前窗口的內容。 | | [prompt()](https://www.runoob.com/jsref/met-win-prompt.html) | 顯示可提示用戶輸入的對話框。 | | [resizeBy()](https://www.runoob.com/jsref/met-win-resizeby.html) | 按照指定的像素調整窗口的大小。 | | [resizeTo()](https://www.runoob.com/jsref/met-win-resizeto.html) | 把窗口的大小調整到指定的寬度和高度。 | | scroll() | 已廢棄。該方法已經使用了[scrollTo()](https://www.runoob.com/jsref/met-win-scrollto.html)方法來替代。 | | [scrollBy()](https://www.runoob.com/jsref/met-win-scrollby.html) | 按照指定的像素值來滾動內容。 | | [**scrollTo**()](https://www.runoob.com/jsref/met-win-scrollto.html) | 把內容滾動到指定的坐標。 | | [**setInterval**()](https://www.runoob.com/jsref/met-win-setinterval.html) | 按照指定的周期(以毫秒計)來調用函數或計算表達式。 | | [**setTimeout**()](https://www.runoob.com/jsref/met-win-settimeout.html) | 在指定的毫秒數后調用函數或計算表達式。 | | [stop()](https://www.runoob.com/jsref/met-win-stop.html) | 停止頁面載入。 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看