Reputation: 14843
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:
Iframe cons:
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?
Upvotes: 2
Views: 408
Reputation: 24637
Here's why:
An iframe created via bookmarklet can't read the DOM of the parent document
Any events inside the iframe would still have no effect on the parent document
Upvotes: 0