Can you spot the bug in this code?
Aug. 30th, 2008 01:32 pmHere I was working on this code and discovered a bug in it. The bug was easily found and dispatched. Can you see it?
0001: document.getElementById("DialogHost_Container")
$[0] = [null] null
0001: window.document.getElementById('DialogHost_Container');
$[1] = [null] null
0001: document.all.DialogHost_Container
$[2] = [void] void
0001: document.body.DialogHost_Container
Caught exception: “TypeError: document.body has no properties”
var obj = document.getElementById("DialogHost_Container");