Hi,
ich kann's nicht übers Herz bringen... So schlechten JS Code habe ich noch nie geschrieben... Das war irgendwie JS mit Perl vermischt. Aber so funktioniert's:
<script language="javascript">
function load_again(){
if(document.location.href.indexOf('?')!=-1){
alert(document.location.href.substring(0,document.location.href.indexOf('?')));
document.location.href=document.location.href.substring(0,document.location.href.indexOf('?'));
}else{
alert(document.location.href+"?");
document.location.href=document.location.href+"?";
}
}
</script>
<p><a href="javascript:load_again()">Neu laden</a></p>
Ciao
Andreas