Just want two simple javascript vars to show up as text on the page. This code works for one variable but when I add a second call to getElementById it shows nothing:
html
<p id="demo"></p>
<span id="temper"></span>
JS
document.getElementById("demo").innerHTML = location;
document.getElementById("temper").innerHTML = temp_f;
temp_fa declared variable?locationandtemp_fboth have values. Do they?window.onload. Can you share where you've defined thelocationandtemp_fvariable