I have a below HTML file and when I manually move cursor on the dummy link, it shows me yellow color, as I have added that style on css hover. Same I would like to simulate with java script. Here below is the image for reference.
Please suggest me how to achieve it?
<!DOCTYPE html>
<html>
<head>
<style>
a:hover {
background-color: yellow;
}
</style>
</head>
<body>
<a href="https://####">dummylink</a>
<p><b>Note:</b> The :hover selector style links on mouse-over.</p>
</body>
</html>