That is what I thought as well. My initial tests used the following code: btnShowAllExamples.value = 'Hide All examples'; XDocument.UI.Alert(btnShowAllExamples.value); Which resulted in an Object doesn't support this property or method error. If I just use the alert statement, it is blank...