[Javascript] strange things in javascript world

Michael Ledig hobbes_tiger at gmx.de
Fri Aug 9 05:06:27 CDT 2002


Hi anand,

anand schrieb:
  >
  > hi
  >
  > pl change "=="  in the for loop with "=" ie
  > j==stPoglavi to j=stPoglavi.

you better don't do that. his says to JavaScript, that with every loop,
the variable j is set to stPoglavi!

If you have this condition in your for, your for loop while run forever.


I think you need something like j<=stPoglavi or j>=stPoglavi.

You count the variable j from 1 so i think you need "j<=stPoglavi"

HTH and greetings
Mike.

-- 
Training und Projekte
http://www.gidel.de





More information about the Javascript mailing list