html点击链接调用php文件
<a onclick="window.open('php/loginOut.php','_self')">退出登录</a>
loginOut.php文件内容
<?php session_start(); session_destroy(); header('location:index.html'); ?>