views:

398

answers:

2

In app mode, if I open a new window using javascript, the newly-opened window cannot close itself (on an on-click event) using the standard window.close() or self.close(). Does anyone know if there's an alternate method?

What I find most beguiling about this is that it goes against Apple's very own design guidelines: essentially a site has the ability to open a new window but the user cannot get out of it without closing the webapp using the Home button.

Any ideas? Thanks!

A: 

JavaScript:window.self.close() is how to do that.

Jake Kovar
A: 

Jake thanks. Trick now is getting Mobile Safari not to crash after the transition back to the page it originated from. Good times.

Mark