reference id in javascript code example Example: reference id in javascript document.getElementById("demo");