元素!如何在按下我制作的按钮几秒钟后关闭弹出窗口
如何在单击空间按钮几秒钟后关闭弹出窗口?
How to close a popup after a few seconds at the click of a spacial button ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
如何在单击空间按钮几秒钟后关闭弹出窗口?
How to close a popup after a few seconds at the click of a spacial button ?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
一种可能性是延迟关闭时间,请参阅:
可能重新发布 Close Elementor Popup with JavaScript
One possibility is to time delay close see:
Possible repost of Close Elementor Popup with JavaScript
我已经写在评论里了,我也会回复。
Elementor Pro 具有用于弹出窗口的 JS 函数。所以你可以这样称呼它
elementorProFrontend.modules.popup.closePopup( { id: yourPopupIdHere } );
总而言之:
可能有一些语法错误,但它应该给你一个想法
I have written it in the comments, by I will answer as well.
Elementor Pro has JS functions for the popups. So you can call it like this
elementorProFrontend.modules.popup.closePopup( { id: yourPopupIdHere } );
All together :
Might have gotten som syntax wrong, but it should give you an idea