<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Your Canvas</title>

<style type="text/css"><!--
#container { position: relative; }
#imageTemp { position: absolute; top: 1px; left: 1px; }
--></style>

</head>
<body>
<canvas id="imageView" width="600" height="500"></canvas>

<script type="text/javascript">
var canvas, context, canvaso, contexto;
canvaso = document.getElementById('imageView');
context = canvaso.getContext('2d');
context.lineWidth = 5;

context.lineWidth = 6;

context.lineWidth = 7;

context.strokeStyle = '#FF0000';
context.beginPath();
context.moveTo(2, 2);
context.lineTo(299, 241);
context.stroke();
context.closePath();

context.strokeStyle = '#FF0000';
context.beginPath();
context.moveTo(299, 241);
context.lineTo(598, 2);
context.stroke();
context.closePath();

context.strokeStyle = '#FF0000';
context.beginPath();
context.moveTo(0, 227);
context.lineTo(302, 498);
context.stroke();
context.closePath();

context.strokeStyle = '#FF0000';
context.beginPath();
context.moveTo(300, 495);
context.lineTo(593, 210);
context.stroke();
context.closePath();
</script>
</body>
</html>