jump to navigation

Menutup IExplore Windows dari asp.net dengan c# Januari 21, 2010

Posted by layyuddi in ASP.NET.
Tags: , , ,
trackback

Sisipkan saja coding berikut untuk menutup IExplore Windows anda secara automatic :

RegisterStartupScript(“load”, “<script type=\”text/javascript\”>\n” + “self.close();\n” + “<” + “/script>”);

bisa juga dengan cara ini :
Response.Write(“<script type=’text/javascript’>”);
Response.Write(“window.opener=null;window.open(”,’_top’);window.top.close();;</”);
Response.Write(“script>”);

Komentar»

No comments yet — be the first.

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.

Bergabunglah dengan 128 pengikut lainnya.