i have posted the code below. I am reading in chapter two of the Modern JavaScript book. I don't know about split. I have not read that part.
Thanks;
Randy
function formatNames(){
'use strict'
var formattedLength;
var formattedMiddle;
var formattedInitials;
var fullName = document.getElementById('fullName').value;
formattedLength = fullName.length;
formattedMiddle = fullName.slice(6,11);
formattedInitials = fullName.charAt(0) + fullName.slice(7,8) + fullName.charAt(11);
document.getElementById('lengthName').value = formattedLength;
document.getElementById('middleName').value = formattedMiddle;
document.getElementById('initials').value = formattedInitials;
return false;
}//Endof formatNames() functions.
function init(){
'use strict'
document.getElementById('theForm').onsubmit = formatNames;
}//End of init() function
window.onload = init;