Auto close window

2 posts, 0 answers
  1. Aneesh
    Aneesh avatar
    9 posts
    Member since:
    May 2012

    Posted 31 May 2012 Link to this post

    What should i do to automatically close the rad window after 10 seconds?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 May 2012 Link to this post

    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.
Back to Top