Please send questions to st10@humboldt.edu .
x<html>

<!-- 
     js_img2.html

     adapted from example in Chapter 1, pp. 31-36, in:
     "JavaScript: Concepts and Techniques - Programming Interactive
     Web Sites", by Tine Spain McDuffie, published by
     Franklin, Beedle and Associates, 2003.

     adapted by: Sharon Tuttle
     last modified: 09-05-06
-->

<head>
    <title> js_img2 </title>

    <script type="text/javascript">
        <!--
        function seeIfHappens(message)
        {
            alert("Was seeIfHappens really called with " + message + "?!")
        }
        //-->
    </script>
</head>

<body>
    <h3> js_img2.html </h3>

    <h3> ADAPTED from example in Chapter 1, pp. 31-36, in: <br>
        "JavaScript: Concepts and Techniques - Programming Interactive
        Web Sites", <br>
	by Tine Spain McDuffie, <br> 
        published by Franklin, Beedle and Associates, 2003.<h3>

    <h4> (adapted by Sharon Tuttle, last modified 09-05-06) </h4>

    <hr>

    <img name="logo"
         src="http://www.w3.org/Icons/valid-html401"
         height="200" width="400">

    <script type="text/javascript">
        <!--

        document.write("<h2> Some properties of the above image: </h2>")
        document.write("<ul>")
        document.write("<li> name: ", window.document.logo.name, "</li>")
        document.write("<li> src: ", window.document.logo.src, "</li>")
        document.write("<li> height: ", window.document.logo.height, "</li>")
        document.write("<li> width: ", window.document.logo.width, "</li>")
        document.write("</ul>")

        var newHeight = prompt("Enter a new height for this image")
        if (! isNaN( Number(newHeight) ) )
        {
            window.document.logo.height = Number(newHeight)
        }
        else
        {
            alert("A height must be a number, silly!")
        }

        //-->
    </script>
    <noscript> 
        <hr> 
        <h3> Your browser does not support JavaScript, or has it disabled;
             <br> 
             please note that, as a result, this page will not work. </h3> 
        <hr> 
    </noscript> 

    <hr>

</body>
</html>