3 ms·
> I think it probably updates on keydown, not several times per second. This seems to be the relevant code (note that it calls update once every 150ms): fun
by dazbradbury 15y ago
> I think it probably updates on keydown, not several times per second.
This seems to be the relevant code (note that it calls update once every 150ms):
function update()
{
var textarea = window.editbox.document.f.ta;
var d = dynamicframe.document;
if (old != textarea.value) {
old = textarea.value;
d.open();
d.write(old);
if (old.replace(/[\r\n]/g,'') == defaultStuff.replace(/[\r\n]/g,''))
d.write(extraStuff);
d.close();
}
window.setTimeout(update, 150);
}