开发者

Invalid procedure call or argument in Javascript on IE8

开发者 https://www.devze.com 2023-04-06 08:51 出处:网络
I have a little problem on IE8. Everything works fine on Chrome and FF. I have a function like this: var Dog = function(){};

I have a little problem on IE8. Everything works fine on Chrome and FF.

I have a function like this:

var Dog = function(){};

and I'm able to do this, of course:

new Dog();

I open a popup window and I try to do this:

new window.opener.Dog();

and now, only in IE, I开发者_JAVA百科 get:

Invalid procedure call or argument

Does anyone knows if it is possible to create an instance of a function defined on the parent window?

Thanks.

0

精彩评论

暂无评论...
验证码 换一张
取 消