createElement error in IE8
I am getting the follow error on the following line in IE8 ( not in IE9 or chrome or firefox )
popup = document.createElement('div');
Error :
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB7.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Fri, 5 Aug 2011 13:39:41 UTC
Message: Object doesn't support this property or method
Line: 72
Char: 5
Code: 0
URI: http://192.168.7.1/fquick/script.js
How do I 开发者_StackOverflow中文版go about it?
Changed the line to
var popup = document.createElement('div');
and it works. funny.
精彩评论