Mozilla.com

  1. window.window
Table of contents
  1. 1. Globals and window
Table of contents
  1. 1. Globals and window

Globals and window

ReCover: Please save the following as an HTML file and try it yourself. The first your edit I reverted was simply bad coding style. The current version (window.global = something) is better, but it doesn't illustrate the point I wanted to illustrate. --Nickolay 15:32, 29 June 2006 (PDT)

<script>
var global = {data: 0};
alert(global === window.global); // displays "true"
</script>
Before I noticed this talk page, I reverted it (once again) to the var global ... version. (So what Nickolay says above as "current" really is not by the time you read this.) --Callek 22:02, 29 June 2006 (PDT)

Page last modified 05:02, 30 Jun 2006 by Callek

Tags:

Files (0)