javascript - Disabling a checkbox until an iframe has scrolled -



javascript - Disabling a checkbox until an iframe has scrolled -

i suspect not possible due browser security, have form @ end of iframe displaying our terms , conditions page. below checkbox agreeing these terms , conditions.

other sites have seen require scroll downwards in terms , conditions before checkbox active suspect done textarea or scrollable div rather iframe.

as such aware of how can spot when iframe has scrolled in javascript or jquery can enable checkbox 1 time has been scrolled.

following code in embedded document should it.

$(window).scroll(function () { if ($(document).height() <= $(window).height() + $(window).scrolltop()) $("#chk", window.parent.document).removeattr("disabled"); });

javascript jquery html

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -