Difference between JavaScript in HTML Header vs Header Text vs Footer Text?
C PatelJan 4 2010 — edited Jan 5 2010This is probably something trivial, but I'm not sure of the difference between specifiying code in the Header Text, Footer Text, and HTML Header. As far as page rendering, when does the JavaScript execute for each of these sections? For instance, the code below for some reason did not execute in the HTML Header section of my page; however, when I put it in the Footer Text, it worked. Why is that? I was assuming that in the HTML Header section that it would execute before getting to the footer. Also, for that matter what is the difference between putting code in the Header Text and HTML Header sections? Based on examples I've seen and what I've read, usually the Javascript code goes in the HTML Header of the Page, but not sure under what circumstances it should be placed in Header Text or Footer Text.
<script type="text/javascript">
document.getElementById("RunRptBtn1").style.visibility = "hidden";
document.getElementById("RunRptBtn2").style.visibility = "hidden";
</script>