Hi All - JavaScript newbie here. Any idea why the following always shows "aaa" in the web page AND the 2nd alert does not occur?
<html>
<head>
</head>
<script type="text/javascript" language="javascript">
function myTest() {
alert (document.body.outerText);
document.body.outerText = "bbb";
alert (document.body.outerText);
}
</script>
<body onload="myTest()";>
aaa
</body>
</html>
<html>
<head>
</head>
<script type="text/javascript" language="javascript">
function myTest() {
alert (document.body.outerText);
document.body.outerText = "bbb";
alert (document.body.outerText);
}
</script>
<body onload="myTest()";>
aaa
</body>
</html>