Subj : const as an element reference To : netscape.public.mozilla.jseng From : invalid@faser.net (Faser) Date : Tue Mar 11 2003 02:04 pm I would like to know if could be correct using a constant to mantain a reference to a xul element. I mean that I have a GUI and I set all reference to widgets like global variable. eg: searchBtn = document.getElementById('search-button'); Could be better to define them as a constant? eg: const searchBtn = document.getElementById('search-button'); Thanks in advance. Faser -- FABIO SERRA *Questo testo deve essere valutato secondo il senso della RFC-3* Per rispondere in e-mail sostituire "invalid" con "faser" -------------------- .