从全宽页面选项卡打开应用程序 [英] Open application from Page tab in full width

查看:43
本文介绍了从全宽页面选项卡打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为我的 Facebook 画布应用程序创建了一个页面,并添加了一个显示应用程序登录页面的新选项卡.但是,当用户单击登录按钮时,我想打开应用程序 (

希望这会有所帮助.

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!

解决方案

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.

这篇关于从全宽页面选项卡打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆