How can I stop browser window jumping to top of page

How can I stop browser window jumping to top of page

I'm completely new to jquery and javascript and am just trying to get a simple script up and running. I've put this in the head of the document:

<script type="text/javascript">
$(function() {
$('#fadein').click(function() {
$('#togglecontent').toggle(1000);
});
});
</script>

with a div with an id of "togglecontent" and a link with an id of "fadein" in the body about halfway down the page. The toggle works well, but when you click on the link, as well as "togglecontent" becoming visible, the browser window jumps to the top of the page, which obscures some of the toggled div. Is there any way I can stop this from happening?

Thanks

Liz