Click to See Complete Forum and Search --> : Silly problem with code - need help


Wilbur
02-16-2003, 05:02 PM
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>

gil davis
02-16-2003, 06:12 PM
It's doing exactly what I would have expected it to do.

What did you expect it to do?

Wilbur
02-16-2003, 06:19 PM
I am wanting to include a variable in the URL, and have the page relaoded taking into account the variable - without the page constantly requesting the page from the server.

Any ides