javascript,在画布中重定向

javascript,在画布中重定向,javascript,facebook,canvas,Javascript,Facebook,Canvas,一般来说,我对javascript和web编程相当陌生。但基本上,我已经制作了一个facebook画布应用程序,我想知道如何使用javascript重定向到一个页面并使其保持在iframe中。例如:现在我有一些 <script type="text/javascript"> window.parent.location = "http://www.google.com"; </script> window.parent.location=”http:/

一般来说,我对javascript和web编程相当陌生。但基本上,我已经制作了一个facebook画布应用程序,我想知道如何使用javascript重定向到一个页面并使其保持在iframe中。例如:现在我有一些

<script type="text/javascript">
      window.parent.location = "http://www.google.com";
  </script>

window.parent.location=”http://www.google.com";
但这会重定向到不在画布应用程序内的google页面。。。有什么想法吗


谢谢大家!

在facebook中,重定向选项被禁用。因此,除非用户单击,否则无法重定向到任何uri。 重定向是自动的,单击则是手动的

11. The primary purpose of your Canvas or Page Tab app on Facebook must not be to simply redirect users out of the Facebook experience and onto an external site.


2.You must not pre-fill any of the fields associated with the following products, unless the user manually generated the content earlier in the workflow: Stream stories (user_message parameter for Facebook.streamPublish and FB.Connect.streamPublish, and message parameter for stream.publish), Photos (caption), Videos (description), Notes (title and content), Links (comment), and Jabber/XMPP.

谷歌不允许自己被包含在
()中。请尝试其他URL.amazon.com?雅虎网站?任何网站都不适用于此,我相信也可以尝试使用
window.location
window.parent.location
。谢谢window.location!