12 Şubat 2012 Pazar
Internet Explorer ve Mozilla Firefox'u kapatma
Internet Explorer ve Mozilla Firefox'u kapatma
Kullanımı:
< input type="button" value="Kapat" onClick="kapat();">
< script language="JavaScript">
// function kapat() {
//Sayfa kapatılıyor.
// window.close()
// }
function kapat()
{
if (navigator.appName=="Windows Internet Explorer" || navigator.appName=="Microsoft Internet Explorer")
{
this.focus();
self.opener = this;
self.close();
}
else
{
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.open('', '_self', '');
window.close();
}
}
< /script>
Kaydol:
Kayıt Yorumları (Atom)
Hiç yorum yok:
Yorum Gönder