Answer
Jan 05, 2009 - 10:07 PM
This seems to work in the major browsers:
function init(form)
{
var input = document.createElement("input");
input.setAttribute("type", "hidden");
input.setAttribute("name", fieldName);
input.setAttribute("value", fieldValue);
form.appendChild(input);
}
I use it succesfully for cross domain ROI tracking with Google Analytics and forms that have to submit via the "GET" method.
Add New Comment