javascript - Removing an Event Listener from an iFrame's Parent Window -
i have code...
var t = "onorientationchange" in window, o = t ? "orientationchange" : "resize"; window.addeventlistener && window.addeventlistener(o, function () { location.reload() }, !1)
i remove event listener "resize". not have direct access code loading other code via iframe on same domain. i'm resizing iframe dynamically based on it's content no issue. question is, can remove resize listener parent window via code loaded in iframe? if so, code like?
the biggest issue have form in iframe , whenever page resized it's reloading whole page , data in form gets erased. not ideal , no way me directly fix it. i'd hate users lose knows how because decided maximize screen.
thanks in advance help!
Comments
Post a Comment