innerHTML is a property, not a method, so it cannot be called with parentheses. The correct syntax is document.getElementById('trial').innerHTML = 'value' to set content, or var content = document.getElementById('trial').innerHTML to read content. Adding () makes it a function call which will cause an error.