Open application from Page tab in full width

怎甘沉沦 提交于 2019-12-25 00:16:03

问题


I have created a Page for my Facebook canvas application and there added a new tab that displays the login page for the application. However, when a user clicks the login button, I would like to open the application (http://apps.facebook.com/amiinteresting) in "full screen", not inside IFrame of the page. The reason is that my application requires more width than can fit within a page tab.

Is this possible to accomplish with JavaScript or in some other way?

Here are a couple of images to describe the problem and the desired behavior:

Application displayed on page tab (current behavior - not what I want):

Application displayed in a new window (this is what I want):

Thank you in advance!


回答1:


For your specific requirement, assuming you have an <a> tag as the button, just specify the property target = '_top' , which will open the link in the top level, i.e change the browser address, so your link will be :

<a href="http://apps.facebook.com/amiinteresting" target="_top">Go to application</a>

Hope this helps.



来源:https://stackoverflow.com/questions/8658739/open-application-from-page-tab-in-full-width

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!