Recently, I incorporated a highscore page with code that manages and updates the score, along with adding the username to a separate page. My goal is to have the HighScore button trigger a pop-up window when clicked, instead of navigating to another page. However, I am unsure how to achieve this.
I understand that most of my post contains code snippets, and I apologize for that, but I wanted to provide all the relevant code related to highscores. Essentially, what I need is a popup window displaying the same data as the existing highscore page when the button is clicked.
I have included all pertinent code below: