0

All,

I have two images (SVG) which I want to 'fixed position' in an iframe. Unfortunately the CSS property of fixed position does not work here, so am trying to accomplish this with js.

Here is the code which listens to the scroll movement of the iframe which I use to move the images (SVG) in the iframe. Unfortunately, this is not working in Chrome. Any guidance please.

window.onload = function () { var f = document.getElementById ("iframe_id").contentWindow; frm.onscroll = movef; }

function movef (evt) {
    alert ("hello");
}

1 Answer 1

0

The document lang differs slightly in chrome. contentWindow would be contentDocument in chrome

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.