if (().IndexOf("msie", ) > -1)//IE browser
{
("content-disposition", "filename=" + (fileName));
}
if (().IndexOf("firefox", ) > -1)//firefox browser
{
("content-disposition", "attachment;filename=\"" + fileName + "\"");
}
else//Other browsers
{
("content-disposition", "attachment;filename=" + fileName);
}
= "application/x-xls";