Forum Moderators: open
Thanks for any help. I always find these forums very helpful, I finally have a problem that I couldn't find my answer to already on here.
Ben
Split the string, with an empty string as argument:
var word = "website";
var letters = word.split("");
You can create global variables from this, if you really want. To do this, you treat globals as properties of the window:
for(var k=0;k<letters.length;k++)
window["letter"+(k+1)] = letters[k];alert(letter3)