Hi people, I have the following code. It is not working for firefox, IExplorer and Opera. Could you help me? Which could be the error?

thanks,

<script id="url" name="url" language="JavaScript" type="text/javascript" src=""></script>
<script language="JavaScript" type="text/javascript">
var u = document.getElementByName("url");
var l = document.location;
u.src = 'http://localhost/ato.aspx?&key=6346&refnum=jpwAw&location=' + l;
</script>