document.write with $(document).ready()

document.write with $(document).ready()


Hi,
I have a question because I went into a problem after a small change
on a website and I want to understand why.
Where in the DOM object tree is jQuery when it fires the ready
function on document $(document).ready() ?
If you put this small script into a page, it will destroy the content
of the page in IE and FF. And on FF the browser is showing that it is
loading something (but nothing actually):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" dir="ltr">
<head>
<script type="text/javascript" src="jquery-1.2.6.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    document.write("Bye bye my page");
});
</script>
</head>
<body>
<h1>Hello</h1>

I'm there...


</body>
</html>
or here http://maxsystem.free.fr/test_jquery.html