I have a function that creates an image with the canvas object. The last line of the function says this:
$('body').css({ 'background-image': "url(" + Canvas.toDataURL("image/png") + ")" });
I'm looking to convert this line into pure javascript to remove the jQuery dependency. Any suggestions?
Thanks.