The code below generates a "too much recursion" message in Firebug.
What am I doing wrong?

<html>
        <head>
                <title>test page</title>
        <script type="text/javascript" src="prototype-1.6.0.3.js"></
script>
        <script type="text/javascript">
            window.onload = function(){
                alert("load...");
                $("test").innerHTML = "loaded!";
                alert("...ed");
            }
        </script>
        </head>
    <body>
        <div id="test"></div>
        </body>
</html>

Cheers,
D.

<html>
        <head>
                <title>test page</title>
        <script type="text/javascript" src="prototype-1.6.0.3.js"></
script>
        <script type="text/javascript">
            window.onload = function(){
                alert("load...");
                $("test").innerHTML = "loaded!";
                alert("...ed");
            }
        </script>
        </head>
    <body>
        <div id="test"></div>
        </body>
</html>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to