\[code\]<script> function confirm() { if (document.getElementById("myInput") == "12") { var c = document.getElementById("myCanvas"); var ctx = c.getContext("2d"); ctx.moveTo(130, 0); ctx.lineTo(130, 150); ctx.stroke(); } }</script><input type="text" id="myInput" placeholder="Type Your Hour" class="center" /><input type="submit" value="http://stackoverflow.com/questions/15736130/OK" id="button" class="center" onclick="confirm();" />\[/code\]I've got this code to get canvas px or postion, and i got stuck on the confirm function, i tried use myInput id to get input and equal it to 12, but the code not working.How can i fix that to work?Thanks in advance!