I'm working on a web project and I need a JavaScript snippet to achieve a specific functionality.
Here's what I need: Essentially, I want to display,for a few seconds, a large text word in the center of the page, above other elements, whenever a button is pressed.
Any help or suggestions would be greatly appreciated! Thank you.
It should work across different browsers and screen sizes.
A button, a hidden
<div>, a simple event listener and a simple timeout.