Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Difference between JavaScript in HTML Header vs Header Text vs Footer Text?

C PatelJan 4 2010 — edited Jan 5 2010
This 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>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2010
Added on Jan 4 2010
5 comments
1,536 views