When creating a bookmarklet that opens a "fake popup" (similar to amazon's wishlist, pinterest, etc) why do people not use iframes instead of generating all the elements and removing all page styles from them? As far as I can tell:
Iframe pros:
- can use browser mechanism for remembering password, etc
- no 3rd party cookie issues
- form submission is much simpler
- much less javascript, which may possibly be broken by scripts etc on the page
Iframe cons:
- cannot automatically close the popup (bookmarklet cannot read iframe content)
- any page scripts must be run outside the iframe, then results passed in via GET param (iframe can't read page content)
- ???
It seems to me that if you don't need the thing to close automatically, an iframe would be by far the better bet. Yet nobody seems to do this. Why not?