New to list, sorry. I cannot get the javascript to change the URL. I've dumbed down what I'm trying to do but even that doesn't work. I've tried rewriting the location.href, using location.reload() too but can't make it change. Any ideas? Thanks.
Code:
function myURL()
{
alert("function myURL executing");
alert(location);
location.href="http://www.google.com";
alert(location);
}
---
<form name="queryForm" onSubmit="myURL()">
<input type="submit" value="run myURL function">