nikko50
01-27-2005, 01:28 PM
Does the below code look correct. I have a <DIV id='sql2'> in my page but the below code does not execute if that elementid is present. What am I doing wrong??
function allPrint(){
if (document.getelementbyid('sql2')){
sql2.style.overflow = "visible";
window.print();
sql2.style.overflow = "auto";
} else{
doprint();
}
}
function allPrint(){
if (document.getelementbyid('sql2')){
sql2.style.overflow = "visible";
window.print();
sql2.style.overflow = "auto";
} else{
doprint();
}
}