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

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -