Open Facebook in your browser

1

I've created a Facebook application that briefly, at some point, uploads a photo to the visitor's album, and then uses var janela = window.open({urldafoto}) to open that photo in the album. So far so good.

I needed to know when this window would be closed, and since onunload does not work for other domains, I made a script that uses setTimeout checking property janela.closed .

On the PC this application is running 100% as it should.

The problem is when I open it on my Android phone, because when I click the button to open the window, Android asks me if I want to open it using the Facebook app (installed on my cell phone), and it gets in the way of janela.closed .

Is there any way to force Android to open the link in the browser in use?

If you have any other idea how to monitor if the window is closed, it would also be interesting to know.

    
asked by anonymous 11.03.2016 / 13:25

0 answers