View Single Post
  #28 (permalink)  
Old June 18th, 2005, 02:40 PM
AGS AGS is offline
Wrox Technical Editor
Points: 267, Level: 5
Points: 267, Level: 5 Points: 267, Level: 5 Points: 267, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2005
Location: Russia
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

Reply With Quote