-1

I have links inside facebook canvas application. And when users click it, it should show in new tab or page. How to do that?

I use javascript location to redirect user to facebook login page.

I saw a code some months that is in javascript by a user in stackoverflow posted as a solution for this but I searched for two days and didn't find it.

Please help

Anger Density
  • 332
  • 1
  • 3
  • 17
Vpp Man
  • 2,384
  • 8
  • 43
  • 74

2 Answers2

0

If you want to open the link in new tab

        window.open(urlOfNewPage);

If you want to open the link in same window

        window.location = urlOfNewPage;
Sen Jacob
  • 3,384
  • 3
  • 35
  • 61
0

I think the answer you're looking for is in the link below. In essence, a href="xyz" target="_top" and so: window.top.location=xyz

window.top.location

links-to-external-site-in-canvas-tab-on-facebook

Community
  • 1
  • 1
John Q
  • 1,262
  • 2
  • 13
  • 19