ASP.NET javascript close page after timeout?

Posted by AliRiza Adiyahsi on Stack Overflow See other posts from Stack Overflow or by AliRiza Adiyahsi
Published on 2012-06-25T11:25:56Z Indexed on 2012/06/25 15:16 UTC
Read the original article Hit count: 154

Filed under:
|
|

I want show an information page after success db opartions. And after the info I want to close each pages (information page and main page)

I wrote this in button oncommand event:

//but this code does not work
Response.Write("<script language='javascript'>setTimeout('self.close();',3000);</script>");

at the same time, I want to show an information message. And then I want to close all, after three seconds.I hope I could explain :)

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about ASP.NET