Hi,
I am creating a text box in a form and trying to use the onBlur event but the onBlur event doesnt seem to execute in IE. It executes nicely in Firefox. I looked at the microsoft documentation for onBlur and it said to use tab-index property but even then this doesnt work. Any idea? I am using the code below to create the text box.
thanks
rko
function createTextBox(name) {
var textElem = document.createElement("input");
textElem.setAttribute("type", "text");
textElem.setAttribute("name", name);
textElem.setAttribute("id", name);
if (name == (skuName + nextRow)) {
textElem.setAttribute("TABINDEX", "0");
textElem.setAttribute("onBlur", "chkmessage('heeello')");
}
return textElem;
}
I am creating a text box in a form and trying to use the onBlur event but the onBlur event doesnt seem to execute in IE. It executes nicely in Firefox. I looked at the microsoft documentation for onBlur and it said to use tab-index property but even then this doesnt work. Any idea? I am using the code below to create the text box.
thanks
rko
function createTextBox(name) {
var textElem = document.createElement("input");
textElem.setAttribute("type", "text");
textElem.setAttribute("name", name);
textElem.setAttribute("id", name);
if (name == (skuName + nextRow)) {
textElem.setAttribute("TABINDEX", "0");
textElem.setAttribute("onBlur", "chkmessage('heeello')");
}
return textElem;
}