HTML5 Popup Windows in Mobile Safari
Hello -- I am trying to run an HTML5 app on the iPad that allows for popup windows of a particular size and calling separate HTML files within mobile Safari. I see the window.open Javascript function does work and a new browser page comes up, though it appears fullscreen and otherwise ignores the attributes one usually gets with a Javascript popup (height, width, distance from left and top, etc.).
I could live with that -- however, Safari clearly ignores the window.close function, even on a kludgy, obvious anchor like:
Close This Window!
I have read in the Safari Developer documentation about this SafariBrowserWindow class but all my attempts at utilizing this for a "close window"-type functionality have failed.
Does anyone have any advice about opening and closing child windows in Safari on the iPad, with or without SafariBrowserWindow? Sample code will be hugely appreciated (hint hint, Apple!). EAGERLY seeking a prompt reply! Thanks for your attention.
I could live with that -- however, Safari clearly ignores the window.close function, even on a kludgy, obvious anchor like:
Close This Window!
I have read in the Safari Developer documentation about this SafariBrowserWindow class but all my attempts at utilizing this for a "close window"-type functionality have failed.
Does anyone have any advice about opening and closing child windows in Safari on the iPad, with or without SafariBrowserWindow? Sample code will be hugely appreciated (hint hint, Apple!). EAGERLY seeking a prompt reply! Thanks for your attention.
iPad, iOS 4