I have added a button to my website that takes the user to a random page on my website when clicked. It works great, other than one issue.
The button opens the page in a new tab. Since the button will be clicked frequently, it will become very spammy for the user.
I want my links to open in the same tab, so the website can be naviagted within one tab.
I have attached the code. Any help would be greatly appreciated!