Created
November 20, 2014 18:55
-
-
Save tarzak/b725e2a010181a8b6aa5 to your computer and use it in GitHub Desktop.
alternate window.onload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
function draw(){ | |
var canvas = document.getElementById('tutorial'); | |
if (canvas.getContext){ | |
var ctx = canvas.getContext('2d'); | |
} | |
} | |
</script> | |
</head> | |
<body onload="draw();"> | |
<canvas id="tutorial" width="150" height="150"></canvas> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment