window.showModalDialog 文法,showmodaldialog

來源:互聯網
上載者:User

window.showModalDialog 文法,showmodaldialog

window.showModalDialog()方法用來建立一個顯示HTML內容的模態對話方塊。

1、版本支援:
showModalDialog() (IE 4+ 支援)


2、文法:
vReturnValue=window.showModalDialog(sURL[,vArguments][,sFeatures]);


3、參數解釋:
sURL  必選  字串  用來指定對話方塊要顯示的網頁的URL。
vArguments  可選  變體  用來向對話方塊傳遞參數。參數類型不限。
對話方塊通過window.dialogArguments來取得傳遞進來的參數。
sFeatures  可選  字串  用來描述對話方塊的外觀等資訊

4、sFeatures參數說明
dialogHeight  npx  對話方塊高度,不小於100px
dialogWidth  npx  對話方塊寬度
dialogLeft  npx  離主視窗左的距離
dialogTop  npx  離主視窗上的距離
center  {yes | no | 1 | 0 }  視窗是否置中,預設yes
help  {yes | no | 1 | 0 }  是否顯示協助按鈕,預設yes
resizable  {yes | no | 1 | 0 }  是否可改變大小,預設no
status  {yes | no | 1 | 0 }  是否顯示狀態列,預設為yes[ Modeless]或no[Modal]
scroll  { yes | no | 1 | 0 | on | off }  指明對話方塊是否顯示捲軸,預設為yes
注意:dialogHide,edge,unadorned這三個屬性是用在HTA(HTML Aplication)中的,一般網頁上用不到。


 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.