I want to use javascript to redirect to a URL which has been passed
as a variable (in php).
I have searched but cannot find any solution.
I think this code is a basic redirect:
<script type="text/javascript">
window.location = "http://www.someserver. com/somePage.html";
</script>
However, I need the URL in this code to be a variable.
I would be grateful if anyone could tell me how to make this code
handle a variable URL or just post the address where I can see some
code which does this (I have searched for a while in google and in
this newsgroup but cannot find anything).
Thank You.
Comment