By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Quick JavaScript question ...

P: n/a
H
Ok, so I have this simple code in a file ;

var v = new array( 15 ) ;

function Init()
{
for (var i = 0; i < v.length ; i ++)
{
v[i] = 0;
}
window.alert("Hi");
}

If I put in the BODY tag onload="Init()", the alert window never comes up,
so I guess theres something wrong with the for loop, cause if I comment that
out the windows comes up. So what is wrong wise ones ?

TIA
H
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
H
Opps.. forget it.. Stupid me can't see difference between Versals and
nonversal letters ...
Jul 17 '05 #2

P: n/a
JavaScript != Java
Regards Jesper
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.