0

I'm wondering if there is a possibility to show to a user a cross-tab message (send it rather to a browser than a specific site). The thing is:

  • user opens site X
  • user opens a new tab with site Y (and stays there)
  • site X has an important message for user that should be red immediately
  • message box has shown on tab with site Y but comes from site X

How to achieve that? Will that work for all browsers?

b4rt3kk
  • 1,419
  • 3
  • 17
  • 26
  • that would be a major browser security bug if you could, it just wouldn't make sense! – Amin Jafari Jun 19 '16 at 11:28
  • @Amin Jafari This is for sure possible, some restaurants shown that the order is ready or something, even if you are on other tab. How to achieve that? – b4rt3kk Jun 19 '16 at 11:32
  • you mean for example I can alert on google page from my website? – Amin Jafari Jun 19 '16 at 11:33
  • @Amin Jafari Exactly. Trully it could be even a browser plugin. – b4rt3kk Jun 19 '16 at 11:35
  • that's impossible, can you send me a link to one of those restaurants you're talking about? if it was possible then I could just send alert to all the tabs every one milliseconds and stop the user from using the browser! – Amin Jafari Jun 19 '16 at 11:37
  • @Amin Jafari https://pyszne.pl/ is example. If I order food there, and reading something on other tab, when they send order to me, I'm getting small popout on bottom-right informing me about that. – b4rt3kk Jun 19 '16 at 11:40
  • oh that is not an alert, that's google chrome's notification, try googling for "chrome notification" or take a look at this question http://stackoverflow.com/questions/2271156/chrome-desktop-notification-example – Amin Jafari Jun 19 '16 at 11:44
  • @Amin Jafari Thanks. You should post it as answer. – b4rt3kk Jun 19 '16 at 11:49

2 Answers2

1

what you're looking for is google chrome's notification

you might want to also take a look at this question.

Community
  • 1
  • 1
Amin Jafari
  • 7,157
  • 2
  • 18
  • 43
0

Are you the owner of the sites X and Y?

Alexander
  • 83
  • 1
  • 7