Iframe - sinsunsan/archiref_wiki GitHub Wiki

Allow to display the content of another page
http://www.w3schools.com/tags/tag_iframe.asp

PRO and CON Iframe

From http://benvinegar.github.io/seamless-talk

IFRAMES ARE GREAT

  • They're sandboxes
  • Avoid JavaScript conflicts
  • Array.prototype.push = '(╯°□°)╯︵ ┻━┻';
  • More secure
  • Better privacy for users

IFRAMES ARE BAD

  • Don't inherit parent CSS rules
  • iframe body { font-family: "Comic Sans"; } /* LOL */
  • Hyperlinks navigate iframe, not parent
  • Don't expand to fit contents

Technic to style iframe waiting to seamless iframe to work

Postmessage technic
http://viget.com/extend/using-javascript-postmessage-to-talk-to-iframes
http://benvinegar.github.io/seamless-talk/#/17