This is a migrated thread and some comments may be shown as answers.

Auto close window

1 Answer 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Aneesh
Top achievements
Rank 1
Aneesh asked on 31 May 2012, 07:51 AM
What should i do to automatically close the rad window after 10 seconds?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 31 May 2012, 10:08 AM
Hi Aneesh,

Here is the sample code which I tried based on your scenario.

JS:
<script type="text/javascript" >
    function OnClientClick()
    {
        var oWnd = radopen("RadWindow1", null);
        window.setTimeout(function ()
        {
            oWnd.close();
        }, 10000);
    }
</script>

Hope this helps.

Thanks,
Princy.
Tags
Window
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or