x
 
<html>
<head>
<script type="text/javascript">
function linkTo(y)
{
var x=window.open("/example/hdom/anchors.htm","","scrollbars=yes,width=250,height=200")
x.location.hash=y
}
</script>
</head>
<body>
<h3>Links and Anchors</h3>
<p>点击一个按钮,来显示第二个窗口中的锚。</p>
<input type="button" value="0" onclick="linkTo(0)">
<input type="button" value="1" onclick="linkTo(1)">
<input type="button" value="2" onclick="linkTo(2)">
<input type="button" value="3" onclick="linkTo(3)">
</body>
</html>