开发者

Facebook app (iframed) and browser back button

I have a multipage Facebook app using iframe. Is there a way to make the browser back button behave properly with this setup? Currently when hitting the back button you are returning to the canvas page, even if you have navigated seve开发者_Python百科ral pages down the app.

Thanks!


The simple answer is No, you can not.

This has been the problem with IFRAME for ages, and has frustrated many a web developer. The Back button is a HORRIBLE button, and IMHO should be removed from the browser world, however since I dont see that happening any time soon, here is something you can do.

The "best" thing you can do is use javascript to catch the event for when the browser tries to navigate away from the current top level page. From there you cna give the user a dialog asking them if they really want to leave the page or not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜