<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>XHTML Test : Close Current Window</title> <script language = "JavaScript" type ="text/javascript" > function closeMe() { if (navigator.appName != "Microsoft Internet Explorer") { netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite"); } window.open('', '_self'); window.close(); } </script> </head> <body> <table> <td> <input id="btnClose" style="font-weight: bold;font-size: 11px;background-color:#104e8b;border-bottom-width:thin;color:White;" type="button" value="Close" onclick="javascript:closeMe();" /> </td> </table> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)