<script> function sample(){ var canv = document.getElementById('memo'); var ctx = canv.getContext('2d'); ctx.beginPath(); ctx.arc(100, 100, 80, 0, Math.PI*2, false); ctx.stroke(); } </script>