-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've just started programming JS, and one question keeps nagging me:

I can insert a <script> element anywhere in HTML, and when it's
executed some DOM objects are created, and placed in the global scope of
the script object.

But which ones are placed in the global scope?

The only one I know of for certain is the "document" object.

I have a feeling that I've seen references to the parent of the <script>
element inserting it's properties and methods into the global scope, but
cannot confirm this.

Also, of particular interest is what goes into the global scope in the
following 2 conditions:

events of form:
<element onload = "jsOnloadFunction()"/>

In this case www.quiksmode.org says the object "this" is
available, and refers to the element the script is invoked on.
What else is placed in the global context?

links of form "javascript:jsFunction()"
I have no idea what goes into the global scope in this case!!



Direct answers, and pointers to information welcome

Bye
-Rob.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB4sHA2vfwxdLxwWYRAlGlAJ9EKtHvDUuPNriV1I0rzNZPJ9sZ1QCfcXno
/THPf0dX2dTOTMa/sdu5EYE=
=7fin
-----END PGP SIGNATURE-----