在safari和Internet Explorer中重新加载无限循环

I have this code which helps me to reload a page. The issue is, it works with Chrome and Firefox but not with Safari, it loops continually.

Can you help me why is this happening?

This is the code:

top.location.href=\'http://www.facebook.com/pages/Penelope-NS/327068327378161?sk=app_338788849530374\';

Can i do this otherwise?

Thanks

I found this code: Where am i supposed to insert it?

headers 'Content-Type' => "text/html;charset=utf-8",
  'Last-Modified' => Time.now.httpdate,
  'P3P' => 'CP="CAO PSA OUR"',
  'X-UA-Compatible' => 'IE=edge'
查看全部
dqm83011
dqm83011
2012/07/03 08:17
  • php
  • javascript
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复