Javascript windowopener.location.reload not working with mobile popup

I have a problem with the following simple javascript function:

I open the popup from the parent page with just a button in the popup that calls the function:

    function closing() {
        try {
            window.opener.location.reload();
            alert("ok");
            window.close();

        } catch (e) { alert(e.description); }
    }

      

It works very simply: it reloads the parent page, alerts with the message "OK" and then closes the popup. It works great with computers: http://www.carnet-de-vol.fr/V2/DGAC/open.aspx

But from mobile phones (iPad or Samsung Galaxy S4), the try / catch test shows an "undefined" error ... it is called by window.opener.location.reload (); lign, but I didn't find why ... I also tried window.opener.reload () etc.

Do you have any ideas?

Sincerely.

J

+3


source to share





All Articles