Test1

by peter9477

HTML

<h2>Test 1</h2>
<canvas id="C"></canvas>
<p>Text after the canvas...</p>

JavaScript

var canvas = document.getElementById('C');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'blue';
ctx.fillRect(0, 0, 300, 150);

setTimeout("location.reload()", 5000);