I am trying to pass a value (lastAllowed) to the user through an alert box. Everything is working as it should be except that after the message and before the value (which is showing up correctly), the word 'undefined' is showing up everytime. Can anyone see something wrong in the following code or have any suggestions. Any and all help is appreciated. TIA - Rory
alert ("Your bio has exceeded the 100 word limit.\nPlease shorten your entry to accomodate this.\nThe 100th word is:" + lastAllowed);
alert ("Your bio has exceeded the 100 word limit.\nPlease shorten your entry to accomodate this.\nThe 100th word is:" + lastAllowed);