Phonegap / jquery mobile - iframe & back button

I am working on a Phonegap / jQuery Android mobile app.

A separate part of the content includes the display of the page, which is located on our server. We used an IFrame to display this, everything works fine from the back button. If you go through several pages in the IFrame and click the back button, the application will return the page, not the contents in the iframe, which is a problem.

I suppose it would be very difficult to get around this, but does anyone have any ideas or alternative methods for displaying an external site using the back button?

+4
source share
1 answer

You might need to override the default onBack method and provide your own. You need to figure out how to simulate return in iFrame software.

+1
source

Source: https://habr.com/ru/post/1387587/


All Articles