Problem:
My canvas is tall and extends out of the view-port.
Currently my canvas is in an iFrame because my bootstrap disables my animation)
I am trying to use an Event on an image button using Javascript to scroll back to the top of the page.
However, It doesn’t work, I think the reason is because the animation is in an iFrame and the scrollbar is actually the browser scrollbar and not the iframe scrollbar
So, I am wondering how can I make this work?
JS CODE
function elementEventHandler(doc, e) {
window.scrollTo(0, 0);
}