Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

problem javascript method

$
0
0
  • <div class="comment-right-col"> <div>

    hi,

    i have the following:

    ScriptManager.RegisterStartupScript(Page, Page.GetType(), "closeWindow", "submitWindow();", true);
    
    DoSomeMethod();



    javascript will close the window but the windows is closed after DoSomeMethod() is executed. what is the reason behind that? i cann't figure it out...

            function submitWindow()
           
    {
                window
    .close();
           
    }


    i want to close the windows before DoSomeMethod() is executed...

    how can i do this?

    thanks


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>