Hi!

I've tried everything to get this working. I have to click the button that calls the draw function twice for the text to appear, only the image appears on the first click now..

Code:
	function draw(){
	
			var canvas = document.getElementById('myCanvas');
			var context = canvas.getContext('2d');
					
			var picture = new Image();
		
			picture.onload = function(){

				context.drawImage(picture, 0, 0, 1280, 720);

				context.font="70px Lobster";
				context.fillText(document.myForm.naam.value, 100, 150);
			}
			
			picture.src = 'images/picture.jpg';
	}