a SPAN does not have a value. If there is no other HTML in the span, then you can get the contents by innerHTML. I am not sure if using the WebDialog method "get_element_value" will work in this case. // javascript var txt = document.getElementById("TestElement").innerHTML