This maybe a css question, I am not sure so I posted it here.
My basic question is: can you format a <object> tag just like a <div> tag? Is it a block level element?
I am guessing no, since <img> is an inline element.
The more complex question:
In my webpage I want to use the <object> tag to dynamically change the HTML within a rectangular box. So clicking on the menu loads a different html file into the object.
looks something like this:
[QUOTE]
<div id=”divid1″>
<object data=”default.html” type=”text/html”>
<p>Error Loading Content…</p>
</object>
</div>
Then i use javascript to replace the text inside of divid1 to another object:
[QUOTE]
function OnClickContactUs() {
document.getElementById(‘divid1’).innerHTML = “<object data=”other.html” type=”text/html”><p>Error Loading Content…</p></object>”;
}
Should that work or am i doing something wrong?