Trying to embed an HTML file using the object tag with external style sheets, but nothing seems to work. First question is how to do that? Note: style sheets are linked to both documents.
Second question is about setting the height attribute of the object to eliminate scrollbars.
The object tag is located within this DIV...
In IE8, I use "ScrollHeightValue('SF_010A','SF_010B')" where SF_010A and SF_010B are ids of the object tag and embedded document body respectively.
function ScrollHeightValue(a, b) {
var testObject1 = document.getElementById(a);
var testObject = testObject1.getElementById(b);
testObject1.style.height = testObject.scrollHeight + 'px';
}
The real second question is...how can this be achieved for non-IE browsers?
As a beginner, maybe my questions aren't phrased correctly. Just seeking guidance on determining object height to show content without scrollbars.
Thanks,
Bob