<! DOCTYPE html>
<body>
<canvas id= "MyCanvas" width= "" "height=", "style=" border:1px solid #c3c3c3; >
Your Browser does not support the canvas element.
</canvas>
<script type= "Text/javascript" >
function Pause (obj,s) {
This. GoOn = function (n,obj,s) {
if (n = = 0) {
SetTimeout (function () {GoOn (1,obj,s);},s);
} else{
Obj. NextStep ();
}
}
This. GoOn (0,obj,s);
}
var C=document.getelementbyid ("MyCanvas");
var Cxt=c.getcontext ("2d");
Cxt.moveto (20,20);
Pause (this,1000);
This. NextStep = function () {
Cxt.lineto (180,80);
Cxt.stroke ();
Pause (this,1000);
This. NextStep = function () {
Cxt.lineto (20,80);
Cxt.stroke ();
Pause (this,1000);
This. NextStep = function () {
Cxt.lineto (20,20);
Cxt.stroke ();
}
}
}
if (localstorage.lastname) {
Localstorage.lastname=number (localstorage.lastname) +1;
}else{
Localstorage.lastname= ' 1 ';
}
document.write (Localstorage.lastname);
if (Sessionstorage.pagecount) {
Sessionstorage.pagecount=number (Sessionstorage.pagecount) +1;
}else{
Sessionstorage.pagecount=1;
}
document.write ("Visits" +sessionstorage.pagecount+ "time (s) this session.");
</script>
</body>