Наставьте пожалуйста на путь истенный ...
Пытаюсь сделать так чтобы при нажатии кнопки back когда hash изменяется, что бы вместе с ним изменялся и выбранный таб ...
Подскажите куда капать пожалуйста ...
<!DOCTYPE HTML>
<html>
<head>
<title>Title</title>
<style>.box {display:none}.box.active {display:block}
h1 {max-height:38px;overflow:hidden;}
p {overflow:hidden;max-height:100px;}
</style>
</head>
<body>
<h1>Your dynamic home page</h1>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
<br>
<ul>
<li><a href="#" title="" onClick="showsection('sectionOne');return false;">Section 1</a></li>
<li><a href="#" title="" onClick="showsection('sectionTwo');return false;">Section 2</a></li>
<li><a href="#" title="" onClick="showsection('sectionThree');return false;">Section 3</a></li>
</ul>
<!--When add new tab see function showsection-->
<div class="box" id="sectionOne">
<h1>Section 1</h1>
<p>This is the first section.</p>
</div>
<div class="box" id="sectionTwo">
<h1>Section 2</h1>
<p>This is the second section.</p>
</div>
<div class="box" id="sectionThree">
<h1>Section 3</h1>
<p>This is the third section.</p>
</div>
<script type="text/javascript">
function showsection(id) {
conts = new Array ("sectionOne","sectionTwo","sectionThree"); //when add new tab section do not forget to add it to this array
for(i=0;i<conts.length;i++) {
document.getElementById(conts[i]).className = 'box';
}
document.getElementById(id).className = 'active';
window.location.hash = id;
}
</script>
</body>
</html>