js關閉視窗不跳提醒

  • Share this:

<html>

<head> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <Script Language="JavaScript"> function abc() { alert("test"); window.opener=null; window.close(); }

//--> </script> <title>新增網頁1</title> </head>

<body> <input type="button" value="關閉視窗" onclick="abc();"> </body>

</html>


Tags: