Sorry if this is a really simple question but I'm new to web design and don't know where to turn.
Say I have a page with an embedded object, like a youtube video or something. I want to be able to change that object, say to a different video, when I click a button somewhere on the page. What is the easiest/best solution for accomplishing this?
I currently have two nearly identical pages but with different videos and a button that links to the other page. I thought this was a stupid way of doing things and was wondering if anyone can give me a better way of doing this.