drawFocusIfNeeded-ref.html (420B)
1 <!--docytpe html--> 2 <html><head> 3 <meta http-equiv="content-type" content="text/html; charset=UTF-8"> 4 <meta charset="UTF-8"> 5 <script> 6 window.onload=function(){ 7 var c=document.getElementById("myCanvas").getContext("2d"); 8 c.beginPath(); 9 c.setLineDash([1,1]); 10 c.strokeRect(10, 10, 200, 200); 11 } 12 </script> 13 </head> 14 <body> 15 <canvas id="myCanvas" height="500" width="500" style="border:1px solid black"> 16 </canvas> 17 18 </body></html>