Stack overflow at line  錯誤原因

場景:點擊頁面上一個超鏈接,彈出模態窗口。

html僞代碼如下:

 <a href="javascript:showModalDialog();"></a>

js代碼:

function showModalDialog(){

var modalDialogStyle="dialogWidth=1000px;dialogHeight=600px;scroll:no;status:no";

return window.showModalDialog("111.html",window,modalDialogStyle);

}

然後IE8就會報類似文章標題的錯誤。

原因就是:命名衝突。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章