Спасибо! Вот так работает:
function NewElement(a){return document.createElement(a)};
function NewEvent(a,b,c){
if(a.addEventListener){a.addEventListener(b,c,false);}
else if(a.attachEvent){a.attachEvent('on' + b,c);}
};
var Form = NewElement('form');
NewEvent(Form, 'submit', function(event){
event = event || window.event;
event.preventDefault?event.preventDefault():(event.returnValue = !1)
console.log('Form is submitting');
});