Hi, I am trying to execute the following code from a firefox extension but it is not working. The actual code inside the else part was different but even this simple for loop is not getting executed. alert box without the for loop is working. Can someone have any idea about why this is not working. Thanks
window.addEventListener("pageshow",function(e)
{
if((document.title.trim()=="Mozilla Firefox") ||
(document.title.trim()=="New Tab"))
{
}
else
{
for(i=0;i<3;i++)
{
alert("hi");
}
}
},true);