Si con il document.write è facile.. basterebbe fare cosi..

codice:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
    <script type="text/javascript">
        function Oggetto(width, height) {
            this.container = document.createElement('div');

            this.div = document.createElement('div');
            this.div.style.width = width + "px";
            this.div.style.height = height + "px";
            this.div.style.backgroundColor = "#cccccc";

            this.container.appendChild(this.div);

            document.write(this.container.innerHTML);
        }    
    </script>
</head>
<body>
    <div id="qui">
        <script>
                new Oggetto(100,100);
        </script>
    </div>

            
</body>
</html>
Proverò a vedere se riesco a far funzionare il tutto con il document.write (c'è dietro una storia "losca" per la quale il document.write non va bene..).

Grazie mille! ianaz