I've tried to build very very very simple code in order to know where is the problem in the full code I wrote.
I still do not understand why this code functions in IE only, and how will it work when I'm using NS.
The interesting fact is that if I replace the "document.write(name)" with alert(name)
it works perfectly with both browsers.
Please give me only practical answers, I've been dealing with that for quite long time.
Thanks a lot
The code:
<html>
<body>
<script language="Javascript">
<!--
document.write("<a href='javascript:newWind("+'"abc"'+"
;'>Aleph home</a><br>"
;
function newWind(name)
{ document.write(name);
}
//-->
</script>
</body>
</html>
I still do not understand why this code functions in IE only, and how will it work when I'm using NS.
The interesting fact is that if I replace the "document.write(name)" with alert(name)
it works perfectly with both browsers.
Please give me only practical answers, I've been dealing with that for quite long time.
Thanks a lot
The code:
<html>
<body>
<script language="Javascript">
<!--
document.write("<a href='javascript:newWind("+'"abc"'+"
function newWind(name)
{ document.write(name);
}
//-->
</script>
</body>
</html>