i have used code to clear data is as follows
var otable=document.getElementById('tblInvalidNo');
while (otable.firstChild)
{
otable.removeChild(otable.firstChild);
}
///
this work fine when table contains data up to 5000...
if records are more than 5000 or 10000 then it hang the application.