query.data = { path: {{=file.path|json}}, serv: serv.value, nick: nick.value, chan: chan.value, message: message.value }; message.value = ''; }); var frame = document.querySelector('#iframe'); frame.src += "?plug=zomgwtfbbq"; frame.addEventListener('load', function() { frame.contentWindow.scrollTo(0, frame.contentWindow.outerHeight); }); //setInterval(function() { //frame.src += ''; //}, 500); })();