I have mentioned it before but I think it is important to repeat it. Java is not JavaScript! There are many differences. Many postings about Java in the newsgroup comp.lang.javascript prove that there is a lack of information. The other way round questions about JavaScript shall be posted to comp.lang.javascript NOT to comp.lang.java. The techniques used in Java and JavaScript differ so much because Java is a programming language and JavaScript is a scripting language. This languages are two different languages with different purposes. I must admit that the two almost similar names may seem to be the same. But this is not so! Please take this into consideration when you ask somebody about Java or JavaScript.