Page 274, last paragraph
Quote:
quote:The keyCode property always contains a code the represents the key pressed, which may or may not
|
Quote:
represent a character. For example, the Enter (or Return) key has a keyCode of 13, the space bar has a
keyCode of 32, and the BackSpace key has a keyCode of 8.
|
misprint?
that
Page 287
I have vague fillings that last sentence is worded unclearly:
Quote:
quote:So, if you set the onload
|
Quote:
event handler on the <body/> element and then check the window.onload property, you see the following
code has been placed there:
<html>
<head>
<title>Onload Example</title>
<script type=”text/javascript”>
function handleLoad() {
alert(window.onload);
}
</script>
<body onload=”handleLoad()”>
</body>
</html>
|
Because if I “set the onload event handler on the <body/> element and then check the window.onload property”, I’ll see “the following code has been placed there”:
Code:
function anonymous() { handleLoad() }
but may be it’s my bad perception of English
Page 288, first code block
Code:
<html>
<head>
<title>Onload Example</title>
<script type=”text/javascript”>
document.body.onload = function () {
alert(“loaded”);
}
</script>
<body>
</body>
</html>
</head> tag is not closed
Best regards,
Alexei