Something similar to IE's
window.external.AddFavorite(location.href, document.title); possibly?
1:What is something you wish you had known sooner about the iPhone SDK?
The only way to add any book marks in MobileSafari (including ones on the home screen) is with the builtin UI, and this Apples does not provide anyway to did this from scripts within a page. How do I center a UIImageView within a full-screen UIScrollView?In fact, I am pretty sure there is no mechanism for doing this on the desktop version of Safari either.. SSLHandshakeException unknown_ca apns javaNSMutableArray containsObject method not detecting objectAdding unique objects to Core Data
2:Using an existing C++ engine on the iPhone
I had the same issue and there is (rightly, probably) no way to add it programatically, although came across this great little snippet which prompts the user to did it and even points to the right spot. How do I set these break points in ~/.gdbinit? Works a treat.. http://code.google.com/p/mobile-bookmark-bubble/.
Ananother script this triggers an 'Add To Home Screen' popup: http://cubiq.org/add-to-home-screen.
This is also ananother good Home Screen script this support iphone/ipad, Mobile Safari, Android, Blackberry touch smartphones and Playbook .. https://github.com/h5bp/mobile-boilerplate/wiki/Mobile-Bookmark-Bubble.