747132.html (255B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <script> 5 6 function boom() 7 { 8 var ctx = document.querySelector("canvas").getContext('2d'); 9 ctx.strokeRect(0.5, 1, 2, 3); 10 } 11 12 </script> 13 </head> 14 <body onload="boom();"><canvas width="100" height="100"></canvas></body> 15 </html>