HTML Help Please

Posted By: Dan Silverman

HTML Help Please - 05/06/09 10:01

Hello!

I have a web page that has a button with a rollover affect. Clicking on the button reveals a hidden layer (popup). However, if the end-user has scrolled down the page a little and then clicks, the page instantly goes back to the top of the page (as if they went to a new page). I would like the page to stay right where it is when they click on the button. How would I do this?

By the way, I am using onClick with the button. The code looks like this:

Code:
<div id="papercarbutton"><a  href="#" onclick="P2H_Menu('PMpapercarbutton', 500, 0)"></a></div>

Posted By: ventilator

Re: HTML Help Please - 05/06/09 10:12

the first thing i would try is this:

<div id="papercarbutton"><a href="#" onclick="P2H_Menu('PMpapercarbutton', 500, 0); return false;"></a></div>
Posted By: Dan Silverman

Re: HTML Help Please - 05/06/09 11:57

That did the trick! Thanks, ventilator!
© 2024 lite-C Forums