After writting this code...
document.write( '<div id="foo"
style="position :absolute;top:0 ;left:0;width:1 0;height:10;bac kground:#fffff0 ;font-size:1"></div>');
.... I've tryed to see its properties with the next line:
alert(document. getElementById( 'foo').style.Pi xelLeft);
but both in firefox and internet explorer return "undefined" .
What is the error? How can I access properly to that div in firefox and
iexplore ?
document.write( '<div id="foo"
style="position :absolute;top:0 ;left:0;width:1 0;height:10;bac kground:#fffff0 ;font-size:1"></div>');
.... I've tryed to see its properties with the next line:
alert(document. getElementById( 'foo').style.Pi xelLeft);
but both in firefox and internet explorer return "undefined" .
What is the error? How can I access properly to that div in firefox and
iexplore ?
Comment