I would like to put an innerHTML I got into an array, from there I can access its size and each character in it. (Each character takes 1 slot in the array).
For example
<script type=text/javascript>
var tester=document.getElementById("mydiv").innerHTML;
//testerArray = conversion function goes here? <<<<<
alert (testerArray.size());
alert (testerArray[2]);
</script>
Help is appreciated! Thanks!!
testerArray = [].slice.call( tester );there is no
.size()for arrays though and you could already use.lengthfor the string. If you actually need array functions, then this is ok