KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want a string to appear character-for-character with the following code: function initText() { var textScroller = document.getElementById('textScroller'); var text = 'Hello how are you?'; for(c = 0; c < text.length; c++) { setTimeout('textScroller.innerHTML += text[c]', 1000); } } window.onload = initText; It's not working.. what am I doing wrong?
Tags (comma-separated)
Save Edits
Cancel