W
whitelined
Hi,
I'm trying to create an 'object' element. I'm using the following code
as a test:
window.onload = function()
{
var obj = document.createElement('object');
obj.type = 'text/html';
obj.data = 'test.html';
document.getElementById('content').appendChild(obj);
}
It works fine is Firefox, but not in IE. In IE, the DOM explorer shows
the 'object' has been created, and attached to the content div, but
nothing is displayed. Does anyone know why?
Thanks for any help
Regards
Aaron
I'm trying to create an 'object' element. I'm using the following code
as a test:
window.onload = function()
{
var obj = document.createElement('object');
obj.type = 'text/html';
obj.data = 'test.html';
document.getElementById('content').appendChild(obj);
}
It works fine is Firefox, but not in IE. In IE, the DOM explorer shows
the 'object' has been created, and attached to the content div, but
nothing is displayed. Does anyone know why?
Thanks for any help
Regards
Aaron