cursor: default;
div { cursor: url("https://i.stack.imgur.com/bUGV0.png"), auto; }
You don't need JavaScript for this at all; just set the title attribute: <div title="Hello, World!"> <label>Name</label> <input type="text"/> </div>