Silly problem with code - need help

admin

Administrator
Staff member
I have a very simple pieco code which I was hoping someone could help me with. I am wanting to use the javascript document.location.replace command to link the user to the same page they are currently viewing. Each time I run the code the script continuosy requests the page from the server as if in a loop. I have included the code below. Any help would be much appreciated. Thanks in advance.

<html>
<head>
<script>
document.location.replace('/h.php');
</script>
</head>
<body>
Hello William
</body>
</html>
 
Back
Top