最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Permission denied error on IE8 and 7 - Stack Overflow

programmeradmin1浏览0评论

Webpage error details

User Agent: Mozilla/4.0 (patible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; BRI/2)
Timestamp: Fri, 1 Jul 2011 01:21:21 UTC


Message: Permission denied
Line: 55
Char: 17
Code: 0
URI: /


Message: Permission denied
Line: 55
Char: 17
Code: 0
URI: /

Current domain is /. This error occur when I tried to redirect to / with top.window.location

Is this because cross domain problem? But no ajax is involved. In Firefox and Chrome it works fine. IE7 and IE8 cause problems.

Webpage error details

User Agent: Mozilla/4.0 (patible; MSIE 7.0; Windows NT 6.1; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; BRI/2)
Timestamp: Fri, 1 Jul 2011 01:21:21 UTC


Message: Permission denied
Line: 55
Char: 17
Code: 0
URI: http://www.testing./phone_select/


Message: Permission denied
Line: 55
Char: 17
Code: 0
URI: http://www.testing./phone_select/

Current domain is http://www.gale.testing./. This error occur when I tried to redirect to http://www.testing./phone_select/ with top.window.location

Is this because cross domain problem? But no ajax is involved. In Firefox and Chrome it works fine. IE7 and IE8 cause problems.

Share Improve this question edited Jul 1, 2011 at 1:57 Yi Jiang 50.2k16 gold badges139 silver badges136 bronze badges asked Jul 1, 2011 at 1:32 LeonLeon 4132 gold badges9 silver badges23 bronze badges 1
  • Did you check your IE browser security settings?, try to set the browser security setting to lowest and see if it works – CliffC Commented Jul 1, 2011 at 1:49
Add a ment  | 

2 Answers 2

Reset to default 5

Use top.location.href instead?

this problem is cause by IE 8 and 7 if using top.redirect. in an iframe, will trigger cross domain error. i solve it by create a redirect function at parent, and then call the function in iframe....

发布评论

评论列表(0)

  1. 暂无评论