If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Opening a link by clicking on a div

Hello all!
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!