Hide Page Controls on Page Load with JavaScript
662905Oct 1 2008 — edited Oct 1 2008Good Morning, I am trying to use a peice of code that I found on another thread:
----------------------------------------------------------------------------
HTML Header
<script language="JavaScript1.1" type="text/javascript">
function setDisabled(PageItem) {
document.getElementById(PageItem).style.visibility = "hidden"
}
</script>
HTML Body Attribute
onLoad="javascript:setDisabled('P36_COMMS1_0');
----------------------------------------------------------------------------
The code works if I change the "onLoad" to "onClick" and click the control. But when I use it as written, it doesn't trigger when the page loads. Does anyone have any ideas?
Here is the original thread: http://forums.oracle.com/forums/thread.jspa?messageID=2760790�, but the thread didn't really relate to my question.
Donald