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