Skip to content

Instantly share code, notes, and snippets.

@vpontis
Created April 27, 2019 21:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save vpontis/ee08573db37d28008586311488cf8190 to your computer and use it in GitHub Desktop.
Strobe Light
<html><head>
<title>Strobe</title>
<script>
function toggleBgColor()
{
document.bgColor = document.bgColor == '#ffffff' ? '#000000' : '#ffffff';
setTimeout('toggleBgColor()', 75); //in milliseconds
}
</script>
</head>
<body onLoad='toggleBgColor();'>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment