Common Web Site Error Messages
- Error: dclkpuwin has no properties
dclkpuwin = window.open('http://ad.doubleclick.net/...','...'); document.onload = dclkpuwin; //Blur the window dclkpuwin.blur();
In Mozilla, and Internet Explorer on Windows XP SP2, a blocked request to open a window will return a null value. This means that the variable
dclkpuwin(cute name, eh?) is null and any request to access properties or methods on the window object will fail.
Of course, this code could have been written to take blocked pop under windows into account, but I will leave that as an exercise for the reader.
- Error: document.all has no properties
Many sites do not support alternative browsers due to the use of proprietary, non-standard properties in Internet Explorer.
document.allis a non-standard property which is used to obtain references to elements in a web page using their ID attributes. The appropriate, modern, standards-based approach is to use
document.getElementById. See Marcio Galli's DevEdge article Updating DHTML Web Pages for next generation browsers: for more information on how to code for modern browsers.