Good day guys.
While doing simple interactive mathematical calculator for my son, i came across some issues. in the beginning i was working on Firefox 4.0.1 Fedora 15 didn’t get any issue yet when i switched for google-chrome 11.0.696.68 the script didn’t work anymore.
i trimmed it down to simplest form possible and here i demonstrate:
[COLOR=”Blue”]
<html>
<body>
<script type=”text/javascript”>
eval(“x=10;y=20;document.write(x*y)”);
document.write(“<br />” + eval(“function(){var loop=’123′;return loop}”)());
document.write(“<br />” + eval(x+17));
</script>
</body>
</html>
the script should output :
[COLOR=”Blue”]200
123
27
yet on chrome it only outputs
[COLOR=”Blue”]200
much regards for the help