javascript error ibn VB

Discussion in 'JavaScript' started by prasath_s01, Jan 13, 2010.

  1. #1
    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
     
    prasath_s01, Jan 13, 2010 IP