I have website with submit button, It can be clicked, but there is no action on android (chrome). On PC chrome it works fine. Dont know where the problem is...
<input style="display:none" type="submit" class="inline-right vytvorplakat" value="Publikovat plakát" onclick="capture();" />
function capture() {
$('#target2').html2canvas({
onrendered: function (canvas) {
//Set hidden field's value to image data (base-64 string)
$('#img_val').val(canvas.toDataURL("image/png"));
//Submit the form manually
document.getElementById("myForm").submit();
}
});
}
I tried this: (as Navjot Singh suggested) but still the same problem, only works on desktop
<input style="display:none" type="submit" class="inline-right vytvorplakat" value="Publikovat plakát" <a href="javascript:capture()">