1

Is it possible to create a Windows 10 taskbar balloon tooltip using Asp.Net in C# or in jQuery? I couldn't find this in Google.

mrbengi
  • 3,184
  • 11
  • 45
  • 79

1 Answers1

1

Most up to date browsers support the Web Notifications API. This allows you to ask the browser to show operating system notifications from JavaScript Code.

See the Microsoft documentation on web notifications for some sample code.

See which browsers support the web notifications API. Edge, Chrome and Firefox support this natively, for Internet Explorer you need to install a plugin to support this.

NineBerry
  • 20,173
  • 3
  • 50
  • 78
  • This is great but I couldn't run the code... Here is my downloaded page: http://hqtunes.com/balloon_tooltip/ – mrbengi Feb 25 '17 at 12:13
  • @mrbengi it is difficult to help since you keep editing that web page – NineBerry Feb 25 '17 at 13:16
  • Okey I won't change – mrbengi Feb 25 '17 at 14:53
  • Two problems that are there in the current version: 1. You need to add `type="button"` to the button. Otherwise it will submit the form it is part of making the page reload. 2. In the javascript, you execute `document.getElementById` while the page is loading. You can only execute that code when the document has finished loading. See for example http://stackoverflow.com/a/807903/101087 on how to execute code when the document has finished loading. – NineBerry Feb 25 '17 at 15:04
  • In fact, I have copied and pasted the same code which you have linked in the answer. But thank you, I will ask a new question for this – mrbengi Feb 25 '17 at 15:27