Skip to content

Instantly share code, notes, and snippets.

@sirkitree
Created December 4, 2012 20:54
Show Gist options
  • Select an option

  • Save sirkitree/4208553 to your computer and use it in GitHub Desktop.

Select an option

Save sirkitree/4208553 to your computer and use it in GitHub Desktop.
giframe
<html>
<body>
<script>
var D = document;
var w = Math.max(
Math.max(D.body.scrollWidth, D.documentElement.scrollWidth),
Math.max(D.body.offsetWidth, D.documentElement.offsetWidth),
Math.max(D.body.clientWidth, D.documentElement.clientWidth)
);
if (w > 899) {
document.write('<iframe src="http://up.massrelevance.com/mr_grammynoms/noms-2012-mosaic/index.html" frameborder="0" style="width: 892px; height: 1448px; border: none; overflow: hidden;" allowtransparency="true" scrolling="no"></iframe>');
}
console.log(w);
</script>
</body>
</html>
@ericduran
Copy link

document.write :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment