I have no experience with js or any programming language, and I need help applying one simple function to my web page.
I have an extremely basic <div> element with a background color, and I want to make it so when it gets clicked, another page is opened, replacing the current one. So I basically want it to work like a link, but it is a div. I'm assuming the easiest way to do this is in js. If someone could please share a solution, I'd really appreciate it!