Can some body explian me wht the below piece of script does.. SCRIPT language='Javascript1.1'> function fnwait(intMS) { // say intMS = 150 var Scriptone = 'window.setTimeout(' + ' function () { window.close(); }, ' + intMS + ');'; var resultone = window.showModalDialog('javascript:document.writeln(' + '""<script>' + Scriptone + '<' + '/script>"")'); } </SCRIPT> This is working fine in IE6 but it opens a window and close in IE7..A java script error also thrown