Hi Leela,
warum kompliziert, wenns auch einfach geht?
Speicher den nachfolgenden Quellcode als test.html ab. Voilá.
Viele Grüsse,
Thorsten
<html>
<head>
<title>Test</title>
<script>
var temp = location.search;
if(temp) { window.location.href = "test.html#" + temp.substring(1,temp.length); }
</script>
</head>
<body>
<a href="test.html?test1">Test 1</a><br>
<a href="test.html?test2">Test 2</a><br>
<a href="test.html?test3">Test 3</a><br>
<a name="test1"></a>Test 1
<a name="test2"></a>Test 2
<a name="test3"></a>Test 3
</body>
</html>