Hi all
I have a code to print content of page it works fine.But when i used editor control we get along with ajax toolkit,the print function not works.
my code is
<pre lang="cs">function printdiv(printpage)
{
var headstr = "<html><head></head><body>";
var footstr = "</body>";
var newstr = document.all.item(printpage).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr+newstr+footstr;
window.print();
document.body.innerHTML = oldstr;
return false;
}</pre>
How to change the code to be applicable to editor also.