I have the following code:
function showAddrBox() {
var prompt = document.getElementById(\'addr_prompt\');
prompt.style.display = \'block\';
docu
Use element.addEventListener("eventName", callbackFunction, false) and element.removeEventListener("eventName", callbackFunction).
Where eventName is the name of the handler without the 'on'. So onsubmit becomes submit.
For documentation of the two functions, see: