This article will teach you how to show the tool tip for HTML control; usually, when the user hovers, the control tool tip appears for a few seconds and disappears when the cursor is moved away from the control.

WinJS is an open-source JavaScript library to build HTML, CSS, and JavaScript applications for your websites and for the Universal Windows App.

Let’s see the steps

Here's an article on how to create new Windows 10 universal Java Script project

Now your solution looks like the following image,

JSTOOL

You can see all the required default files. Windows 10 offers you the option to build apps using WinJs also,

Next open default.html file and write the below code inside the body tag.

  1. <button id="btnTooltip"data-win-control="WinJS.UI.Tooltip"data-win-options="{
  2. innerHTML : ' Welcome to C# Corner and https://windowsapptutorials.wordpress.com/' }">
  3. Tool Tip Button
  4. </button>
Full source code looks like the following image,

CODE

Now run the application and see the output looks like the following image,

OUTPUT

Read more articles on Windows 10: