var form = document.createElement('form');
(form.isDOMForm()) would evaluate to true.
You mean this:
var form = document.createElement('form');
alert(form.nodeName);
More Info:
http://www.howtocreate.co.uk/tutorials/javascript/dombasics
Note that you can also use tagName but nodeName seems to be a better choice.
form.nodeName == "FORM" in all browsers. EDIT: what @Aistina said.nodeName and tagName are precisely as good as each other in this situation where we know for certain that we're dealing with an element.