Function closewin () {
Var ua = navigator.USERAGENT; VAR IE = Navigator.Appname == "Microsoft Internet Explorer"? True: false;
IF (ie) {
Var ieversion = parsefloat (u.indexof ("msie") 5, ua.indexof (";", ua.indexof ("msie"))))))))
IeVersion <5.5) {
Var str = '
'Str =' ';
Document.body.insertadjacenthtml ("BeForend", STR);
Document.All.notipclose.click ();
} else {
WINDOW.OPENER = NULL; window.close ();
}
} else {
WINDOW.CLOSE ()
}
}
// ->
Script>
script>
----------------------------------------
The effect is not very good under Mozilla, because the user can set the operation permission of the script.