Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Javascript "var" crashes NS4


rewboss - 7:18 am on Jul 13, 2002 (gmt 0)


I always initialize and assign my variables in one go -- JavaScript is designed to do that, and it saves a couple of bytes here and there:

var browser='Navigator 4', javaScriptSupport='adequate', cssSupport='poor', domImplementation='catastrophic';

I can't remember if I've ever done that inside a function body. It's a strange bug, and I've never seen it documented anywhere...


Thread source:: http://www.webmasterworld.com/javascript/154.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com