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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -