javascript work in firefox but not in ie
-
var n=''
str=document.getElementById("attach").value
//temp = str.split('\\');
m=str.lastIndexOf("\\")
for(i=m+1;i<str.length;i++)>
{
n = n + str[i];
// alert
}
alert
document.getElementById("name").innerHTML = n;
alert(document.getElementById("name").innerHTML);this code is work in firefox while not work in ie given undefine. why? anybody can tell me what the reason. Big Grin
I will do my best? Integrated Solutions, Bikaner (Raj.), India
-
var n=''
str=document.getElementById("attach").value
//temp = str.split('\\');
m=str.lastIndexOf("\\")
for(i=m+1;i<str.length;i++)>
{
n = n + str[i];
// alert
}
alert
document.getElementById("name").innerHTML = n;
alert(document.getElementById("name").innerHTML);this code is work in firefox while not work in ie given undefine. why? anybody can tell me what the reason. Big Grin
I will do my best? Integrated Solutions, Bikaner (Raj.), India