I have the code:
$(document).on('scroll', function() {
if ($(this).scrollTop() == 0) {
$('#arrow').show()('TOP!');
}
else {
$('#arrow').hide()($(this).scrollTop());
}
});
This allows me to have an image that disappears when i start scrolling and reappear when the scroll bar hits the top of the page.. But.
I was wondering if it was possible to link this JS to an iframe on my page and get the image to disappear when I scroll using the iframe?