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
Post a Comment