This works in mozilla but I can't figure out why this won't work in
IE.
Say I have this html
<html>
header goes here
header goes here
header goes here
header goes here
header goes here
<div id="thecontent" >
html goes here
tables etc
html goes here
html goes here
html goes here
<tag><tag><ta g>
</div>
<img src="url" onclick="printI t()">
footer html goes here
footer html goes here
footer html goes here
footer html goes here
</html>
the printIt function looks like this
function printIt()
{
//grab the div in the html w/o the header & footer text
content=documen t.getElementByI d('thecontent') ;
//open a blank window
w=window.open(' about:blank');
//write content var html to the window
w.document.writ e( content.innerHT ML );
//write some javascript to make the newly opened window print itself.
w.document.writ eln("<script>") ;
w.document.writ eln("window.pri nt()");
w.document.writ eln("</"+"script>" );
}
This will cause the print dialog to pop up in mozilla but doesnt
prompt to print in IE.
Is this a security issue?