2017-09-27 46 views
0
不工作

我使用這個IMG的onclick = 「LinkModalDialog()」 在Mozilla

function LinkModalDialog(obj){ 

    var arr=showModalDialog("../../files/list_simple.asp","","dialogHeight: 600px; dialogWidth: 450px; edge: Raised; center: Yes; resizable: Yes; status: Yes; scroll: Yes; help: No;"); 
    if (arr) obj.value=arr; 
    arr=null; 
} 

當我把它在Mozilla着工作 我這樣稱呼它

<IMG onclick="LinkModalDialog(txt_file)" style="cursor : hand;" onMouseOut="MM_displayStatusMsg('');return document.MM_returnValue" onMouseOver="MM_displayStatusMsg('1111111');return document.MM_returnValue" align=top border=0 alt="11111" src="<%=imagesDir%>/uploadbtn.gif"> 

的窗口不是在Mozilla

+0

1111

+0

功能LinkModalDialog(OBJ){ \t變種ARR =在showModalDialog(」 ../../文件/list_simple.asp","","dialogHeight:600px; dialogWidth:450px; edge:Raised; center:Yes; resizable:Yes; status:Yes; scroll:Yes; help:No;「); \t if(arr )obj.value = arr; \t \t arr = null; } –

+0

您可以使用** edit **按鈕來編輯您的問題 – Quentin

回答

0

開放MDN: Window.showModalDialog()

此功能已過時。雖然它可能在某些瀏覽器中仍然有效,但它的使用是不鼓勵的,因爲它可以在任何時候被刪除。儘量避免使用它。


此功能已被刪除。請修復您的網站和應用程序。

在鉻43,和Firefox 56.