Skip to content

Instantly share code, notes, and snippets.

@flyfy1
Last active January 12, 2016 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyfy1/fc6208d57e3bbd7fba4e to your computer and use it in GitHub Desktop.
Save flyfy1/fc6208d57e3bbd7fba4e to your computer and use it in GitHub Desktop.
Body.no-scoll test
<html>
<head>
<title>Test Body No Scoll</title>
<style>
body{
background-color: black;
color: white;
}
</style>
</head>
<body>
<script>
console.log('This is javascript :)')
const b = document.getElementsByTagName('body')[0]
var content = '';
for(var i = 0 ; i < 100 ; i++){
content += ('<p>This is line #' + i + '</p>')
}
b.innerHTML = content;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment