You are on page 1of 1

function addMenuContextParam (form,paramValue) { if (document.getElementById) { var input = document.createElement('INPUT'); if (document.

all) { // what follows should work // with NN6 but doesn't in M14 input.type = 'HIDDEN'; input.name = 'SOME_NAME'; input.value = paramValue; } else if (document.getElementById) { // so here is the // NN6 workaround input.setAttribute('type', 'HIDDEN'); input.setAttribute('name', 'SOME_NAME'); input.setAttribute('value', paramValue); } form.appendChild(input); } }

You might also like