- Products -


Software


NEWS


Special



- Knowledge -


Category × Tag



- Like -

公開
作成日:2022/6/7
更新日:2022/6/7

confirmはアクティブタブでないと実行されない問題

・chromeの開発者ツール(console)に英文で警告メッセージが出ていた。
・バックグラウンドウインドウ(タブ)だったので、confirmの動作抑制したよ。というもの。

・裏側でも表示される場合もあったが、表示されない環境にも出くわした。

・これに対処するにはお手製confirmかアクティブになった時に実行する用変更するしかない。

・consoleに表示されていた英文は以下の通り。
A window.confirm() dialog generated by this page was suppressed because this page is not the active tab of the front window. Please make sure your dialogs are triggered by user interactions to avoid this situation.

参考


https://community.servicenow.com/community?id=community_question&sys_id=a6049243db0d63008e7c2926ca961918


Category



Tag




関連記事


{{tmp.name}}

{{article.category}} {{article.title}}