If it matters I worked out a javascript way. Might be easier for some.
- Code: Select all
<html>
<head>
<script type="text/javascript">
function movePage(theDiv) {
window.location = window.location + "#" + theDiv;
}
</script>
</head>
<body onload="movePage('middle')">
<div id="top">
<p>Foo</p>
</div>
<div id="middle">
<p>Bar</p>
</div>
<div id="bottom">
<p>Foo Bar</p>
</div>
</body>
</html>
You just use the onload handler to load the function when the page is first loaded. You type in the name of the div you want to start at when calling the function.