本页面打开新页面并关闭本页面
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title> New Document </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Description" content=""> </head><script type="text/javascript"><!--function c(){window.open('http://www.baidu.com');window.history.back(-1);window.opener=null;window.close();}//--></script> <body> <input type="button" value="测试" onclick="c()"/> </body></html>