Oto zrzut ekranu i kod. I jak mogę go zmienić na coś w stylu "Na tej stronie jest napisane", a następnie ostrzec().
<button id="hover-me"> Move the cursor over here </button>
document.getElementById("hover-me").onmouseover = function() {
alert("You hovered me")};