Team:Cornell/javascripts/mycodraw
From 2013.igem.org
(Difference between revisions)
R.Lizarralde (Talk | contribs) |
R.Lizarralde (Talk | contribs) |
||
Line 1: | Line 1: | ||
- | function mycoDraw() | + | function mycoDraw(canvas) |
{ | { | ||
- | + | var canvas = document.getElementById("mycodraw"); | |
var img = canvas.children[0]; | var img = canvas.children[0]; | ||
alert(img.src); | alert(img.src); | ||
} | } |
Revision as of 17:42, 16 June 2013
function mycoDraw(canvas) { var canvas = document.getElementById("mycodraw"); var img = canvas.children[0]; alert(img.src); }