Why are events not firing like onkeyup, onkeypress, onmouseup? [closed]
Here is a jsfiddle example of what I am working on:
http://jsfiddle.net/bdijVd/2/.
Why don't the text fields update?
In Chrome, the events work but you see nothing because of the error:
Uncaught TypeError: Object [object DOMWindow] has no method 'getBrowser'
Thrown on line 38:
document.getElementById('txtarea').innerHTML = ("<b>" + tagline + "</b>" + "</br >" + "<br />" + "<i>" + "<u>" + author + " " + date + "." + "</u> " + author + " (" + credentials + ") " + date + " " + publication + " " + title + " " + (window.top.getBrowser().selectedBrowser.contentWindow.location.href) + "</i>" + "<br />" + "<br />" + evidence);
In FireFox, your format()
function is throwing the error Permission denied to access property 'getBrowser'
.
精彩评论