I want to set up a menu to direct the user to the same page, but diffent locations
<ul>
<li><a href="realtime.php#location1">location 1 in page</a></li>
<li><a href="realtime.php#location2">location 2 in page</a></li>
</ul>
here is the page's html: (realtime.php)
<div id="location1" name="location1"></div>
<some html....>
<div id="location1" name="location1"></div>
<some other html...>
It doesn't work for me: 1. It doesn't redirect to the correct location inside the page 2. If I'm viewing the current page, It does nothing -> meaning doesn't even reload the page.