I have made a site with multiple pages in it. These pages are in linked by a menu. One button of the menu takes the user to another page but to a specific spot, a specific div by it`s id. The problem is that when I click the button it first takes you to the top of the page and after that spot. Can I avoid this?
EDIT:
$evenimente='#evenimente';
return
'<div class="header">'.
'<a class="prev" href="'.$this->naviHref.'?month='.sprintf('%02d',$preMonth).'&year='.$preYear.$evenimente.'">Prev</a>'.
'<span class="title">'.date('Y M',strtotime($this->currentYear.'-'.$this->currentMonth.'-1')).'</span>'.
'<a class="next" href="'.$this->naviHref.'?month='.sprintf("%02d", $nextMonth).'&year='.$nextYear.$evenimente.'">Next</a>'.
'</div>';
It`s actually a button which changes the month in a calendar, and if I press it it takes me on the top of the page again