Changing div's without reloading page

Hi there,

I have a website build complete out of div’s. At one point there are three div’s on the same position, two of them aren’t visible.

I made a javascript to make another div visible and the current div invisible when clicking on a button.

This works like heaven, but when it “changes” from div’s the whole page reloads. This gives a flickering effect, that I don’t want.

Can someone tell me how this can be done without reloading the webpage???

tnx in advance