html和php关闭当前窗口

<button onclick="javascript:window.opener=null;window.open('','_self');window.close();" type="button">

<a href="javascript:window.opener=null;window.open('','_self');window.close();">关闭</a>

<?php
    echo '<script>window.close();</script>';
?>

猜你喜欢

转载自blog.csdn.net/yumon321/article/details/82813013
今日推荐