Oracle神諭

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            284 隨筆 :: 9 文章 :: 106 評論 :: 0 Trackbacks
          今天一個同事在琢磨:
          function dialogReturn(value1){
            window.parent.returnValue = value1;
            window.parent.close();
          }
          這樣一個函數的時候,有點模糊,后來查看MSDN終于找到答案。
          window Object  Represents an open window in the browser. (表現在瀏覽器中打開一個窗口。)

          Typically, the browser creates one window object when it opens an HTML document. However, if a document defines one or more frames (that is, contains one or more frame or iframe tags), the browser creates one window object for the original document and one additional window object for each frame. These additional objects are child windows of the original window and can be affected by actions that occur in the original. For example, closing the original window causes all child windows to close. You can also create new windows (and corresponding window objects) using methods such as open, showModalDialog, and showModelessDialog.
          如果一個文檔定義了一個或多個框架,瀏覽器為每一個框架創建一個window對象為這個源document和一個附加的window對象。 這些附加的對象是源文檔的子windows,并且受源動作的影響。例如,關閉這個源窗體導致子窗體也被關閉。
          returnValue Sets or retrieves the value returned from the modal dialog window.

          posted on 2005-06-21 17:47 java世界暢談 閱讀(426) 評論(2)  編輯  收藏 所屬分類: DHTML

          評論

          # re: IE中的window 2007-01-13 00:02 隨便看看
          沒看懂  回復  更多評論
            

          # re: IE中的window 2007-01-13 00:03 隨便看看
          也沒看懂  回復  更多評論
            


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 仪征市| 安仁县| 海口市| 延寿县| 开封县| 集安市| 湖南省| 习水县| 阳高县| 镇江市| 沅江市| 凯里市| 鸡西市| 安阳市| 宜兰市| 河东区| 英超| 余干县| 望江县| 淄博市| 富裕县| 乌拉特中旗| 青岛市| 长乐市| 章丘市| 巴林左旗| 南皮县| 乌恰县| 永城市| 五台县| 万宁市| 广灵县| 灌阳县| 方山县| 武城县| 赫章县| 科技| 林州市| 年辖:市辖区| 大余县| 望谟县|