1
我在我的DNN 7.02網站(dnnAlert是dnnAlert的常規DNN安裝中包含的jQuery UI插件)中使用了dnnAlert來代替常規警報,但是問題是當我點擊OK按鈕時,頁面自動滾動到頂部,這非常煩人。當單擊確定按鈕時,dnnAlert正在滾動到頁面頂部
如何防止自動滾動?
$.dnnAlert({
text: 'Copied code to clipboard',
dialogClass: 'dnnFormPopup',
title: 'Copy Successful',
modal:false
});
確定按鈕使用以下html呈現。
<button class="dnnPrimaryAction" type="button">Ok</button>