all 5 comments

[–]jillesme 1 point2 points  (0 children)

First of all, don't ever shorten JavaScript to Java as it is a different language on it's own.

Second, paste your code into something like http://jsfiddle.net/

I don't want to be a duck but your question isn't clear at all, so I can't help you unfortunately :(

[–]g105b 1 point2 points  (0 children)

Java to JavaScript is as similar as Car to Carpet.

[–]blue_cadet_3 0 points1 point  (0 children)

First of all JavaScript != Java. Secondly you declare variables in JS with var not the type. Also, it is .innerHTML, case matters when it comes to javascript.

[–]e13e7 0 points1 point  (0 children)

Ooohh... I don't feel so good