Example: jsfiddle
html:
<iframe id="frame" scrolling="no"></iframe>
js:
frame.contentWindow.document.write('scroll</br><div style="width:100px;height:100px;"><canvas id="cv"></canvas></div>');
var cv = frame.contentWindow.document.body.childNodes[2].childNodes[0];
var context = cv.getContext("2d");
cv.height = cv.width = 500;
context.fillStyle = "red";
context.rect(0, 0, 500, 500);
context.fill();
Why doesn't this work on android 4.2 (maybe in others)? Why i can scroll an iframe when scrolling="no"? Without canvas all works perfectly.