I have googled and given the generic nature of the elements type 'object' I haven't found the needle in the haystack that answers my question, it's been few hours so I am admitting defeat and asking for help.
I have:
<object id ="siteconfigwindow" name="siteconfigwindow" type="text/html"
data="blank.html" width="100%" height="600"
onload="hideeditcontrols()">
I have javascript that successfully changes the data value of the object element to a html page with content with some control I wish to hide.
document.getElementsByName("siteconfigwindow")[0].data = url;
url
that successfully loads contains this:
<div style="text-align:center;">
<input id="nodeAdd" type="submit" name="addButton">
<input id="nodeEdit" type="submit" name="editButton">
<input id="nodeDelete" type="button" name="nodeDelete">
</div>
The controls I wish to hide are easily hidden when viewing the source page and issuing a console command such as:
document.getElementById("nodeAdd").parentNode.style.visibility = 'hidden'
But the same command errors out with null object errors when issued via console on the custom page with the object element.
I'm all for scrapping the whole code if someone knows a better way to display the source page and hide that div.
Both pages are on my intranet and same server so I do not believe this is security related. My thanks in advance for any assistance.