posts - 75,comments - 83,trackbacks - 0
          <2008年1月>
          303112345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          常用鏈接

          留言簿(6)

          隨筆分類(52)

          隨筆檔案(75)

          文章分類(12)

          文章檔案(15)

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          ?

          1 .?showModalDialog和showModelessDialog的異同??

          同:兩者彈出的窗體不能刷新??

          異:前者是模態窗口,始終獲得焦點;后者是非模態窗口,只不過彈出一個頁面,還可以操作父窗口。??

          2 .?關閉showModalDialog和showModelessDialog彈出的窗口??

          < INPUT?type = " button " ?value = " ButtonClick " ?onclick = " self.close(); " > ??

          3 .?怎樣才讓在showModalDialog和showModelessDialog的彈出新窗口里操作button,不彈出新窗口???

          < head > </ head > 之間加 < base?target = " _self " > ??

          4 .?showModalDialog的返回值??

          參照例子:??

          t1.html:??

          < script?language = " javascript " > ??
          function?showpage()??
          {??
          alert(showModalDialog(
          " t2.html " ));??
          }
          ??
          </ script > ??
          < input?type = " button " ?value = " getval " ?onClick = " showpage(); " > ??

          t2.html??
          < HTML > ??
          < HEAD > ??
          < Script?language = " javascript " > ??
          < ??
          function?SetVal()??
          {??
          returnValue
          = " abc " ;??
          close();??
          }
          ??
          // -->??
          </ Script > ??
          </ HEAD > ??
          < BODY > ???
          < input?type = " button " ?value = " Btn1 " ?onClick = " SetVal(); " > ??
          </ BODY > ??
          </ HTML > ???
          posted on 2008-01-15 15:02 梓楓 閱讀(583) 評論(2)  編輯  收藏 所屬分類: javascript

          FeedBack:
          # re: showModalDialog和showModelessDialog[未登錄]
          2008-01-18 15:22 | 過客
          3. 怎樣才讓在showModalDialog和showModelessDialog的彈出新窗口里操作button,不彈出新窗口?

          在<head>和</head>之間加<base target="_self">


          這句是什么意思啊????????????  回復  更多評論
            
          # re: showModalDialog和showModelessDialog
          2008-10-03 09:19 | 愛上對方
          厲害頂 樓主  回復  更多評論
            
          主站蜘蛛池模板: 姜堰市| 保靖县| 潍坊市| 中西区| 阜城县| 云梦县| 行唐县| 宿州市| 岳池县| 房产| 西华县| 两当县| 甘肃省| 宜兰县| 米泉市| 峨眉山市| 玛沁县| 谢通门县| 重庆市| 丰镇市| 渭源县| 达孜县| 鄄城县| 浑源县| 巴南区| 古田县| 辽阳县| 盐池县| 泰安市| 武川县| 威远县| 平泉县| 虞城县| 永善县| 南京市| 孝昌县| 黔西县| 临潭县| 柯坪县| 广河县| 宁夏|