简体   繁体   中英

How to close a Modal Popup via Javascript code within Chrome Browser Developer Console?

How to close a Modal Popup via Javascript code within the Chrome 'Developer' console window?

I'm unable to close the following modal popup listed below with the following code when entered within the chrome browser developer console textfield:

Attempted to close the modal popup with the following code:

$(".modal-dialog.close").close();

在此处输入图片说明

在此处输入图片说明

您可以尝试在关闭按钮上触发点击事件:

$(".close").trigger("click");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM