Oracle神諭

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

          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.
          如果一個(gè)文檔定義了一個(gè)或多個(gè)框架,瀏覽器為每一個(gè)框架創(chuàng)建一個(gè)window對(duì)象為這個(gè)源document和一個(gè)附加的window對(duì)象。 這些附加的對(duì)象是源文檔的子windows,并且受源動(dòng)作的影響。例如,關(guān)閉這個(gè)源窗體導(dǎo)致子窗體也被關(guān)閉。
          returnValue Sets or retrieves the value returned from the modal dialog window.

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

          評(píng)論

          # re: IE中的window 2007-01-13 00:02 隨便看看
          沒看懂  回復(fù)  更多評(píng)論
            

          # re: IE中的window 2007-01-13 00:03 隨便看看
          也沒看懂  回復(fù)  更多評(píng)論
            


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 通江县| 威海市| 舒城县| 长乐市| 延庆县| 冷水江市| 教育| 疏附县| 唐山市| 定边县| 绵竹市| 肇庆市| 万安县| 娱乐| 嘉义市| 临武县| 南通市| 牟定县| 保靖县| 葫芦岛市| 石河子市| 罗定市| 且末县| 涡阳县| 东兴市| 波密县| 鸡东县| 上犹县| 营口市| 浙江省| 平利县| 罗城| 古浪县| 建水县| 祥云县| 重庆市| 广水市| 舒城县| 金坛市| 东丽区| 镇原县|