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

<!-- 
     js_obj_props2.html
     
     adapted from example in Chapter 1, pp. 24-27, 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_obj_props2 </title>

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

<body>
    <h3> js_obj_props2.html </h3>

    <h3> ADAPTED from example in Chapter 1, pp. 24-27, 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>

    <script type="text/javascript">
        <!--
        document.write("<h2> Some properties of the <code><strong>",
                       " document </strong></code> object </h2>")
        document.write("<ul>")
        document.write("<li> alinkColor (active links): ", 
                       document.alinkColor, "</li>")
        document.write("<li> linkColor: ", document.linkColor, "</li>")
        document.write("<li> domain: ", document.domain, "</li>")
        document.write("<li> lastModified: ", document.lastModified, "</li>")
        document.write("<li> referrer: ", document.referrer, "</li>")
        document.write("<li> URL: ", document.URL, "</li>")
        document.write("<li> title: ", document.title, "</li>")

        document.write("</ul>")

        document.write("<h2> Some random links </h2>")
        document.write("<ul>")
        document.write("<li> ",
            "<a href=\"http://www.humboldt.edu/~st10/f06cis180js\">",
            "CIS 180 - JavaScript public course web page </a></li>")
        document.write("<li> ",
            "<a href=\"http://www.w3schools.com/js/js_obj_htmldom.asp\">",
            "W3Schools JavaScript Tutorial - HTML DOM reference </a></li>")
        document.write("</ul>")

        var newALinkColor = prompt(
            "What color shall the active links be now?")
        document.alinkColor = newALinkColor

        var newLinkColor = prompt(
            "What color shall the other links be now?")
        document.linkColor = newLinkColor

        // play: can we go to a new web page this way?
        var newURL = prompt("What URL shall we go to now?")
        window.location = newURL        

        //-->
    </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>