Abdullah Danyal

Results 2 comments of Abdullah Danyal

`` `var polyline;` `var draw;` `window.onload = function() {` `var element = document.getElementById('drawing');` `draw = SVG(element).size('100%', '100%');` `polyline = draw.polyline();` `polyline.fill('none').stroke({ 'color':'red', 'linecap':'round' }).draw();` `element.addEventListener('mousedown', function(event){` `//if right click then...

The above one is the whole code, When you click on button then function drawagain() executed.