This is my code for a box to be shown when a button is hovered over. From line 37 is where i have the problem.

The code from line 37, is to make the box disappear when an element contained in the box is clicked. There are a lot of elements in the box, so i wondered if there’s a better and more efficient way of going about this. Note: not all the elements link to the same page.

The “import” line must be at the beginning of the page code

Anything else?