javascript - How to refresh or redirect users after they allowed to get chrome browser notifications? -


is possible in chrome using javascript or php refresh page or redirect users specific page, after user pushed [allow] button in notification pop-up (example of notification request popup: http://prntscr.com/7ataxu)?

https://developer.mozilla.org/en-us/docs/web/api/notification

 notification.requestpermission(function (permission) {       // if user accepts, let's create notification       if (permission === "granted") {         //redirect using javascript here window.location       }     }); 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -