SO fiddle
Test Fiddle mainly for SO Questions
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.4/themes/overcast/jquery-ui.css">
<div style="height: 4000px"></div>
<span id='jump_to_this_location'>Jump here!</span>
<div style="height: 4000px"></div>
JavaScript
window.location.hash = "jump_to_this_location";