Hello All,

It was this code snippet:

var elem=doc.getElementsByTagName('canvas');
var co=elem.length;
var j=0;

for(var j;j<=co;j++)
{
alert("test  "+j);
}

when I used this for loop my button disappeared ,then I use this code
instead:

for(var j in elem)


I didn't understand what was wrong with it!?


Best Regards

On Sat, May 28, 2011 at 2:43 AM, Axel Grude <[email protected]> wrote:

> On 27/05/11 15:02, paniz alipour wrote:
> > hello,
> >
> > I want to use for loop in inline javascript but when I use for it doesn't
> > generate my extension button on mozila!!!!!!?
> >
> > what's the problem?it doesn't support for loop?
> >
> Hi Paniz,
>
> Show us your relevant code. What exactly are you trying to achieve?
>
> Why not simply use a function instead? You can have the for loop within
> that much easier.
>
> Axel
>



-- 
Paniz Alipour
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to