<script> function tuichu(skp){ <?php $ok="skp"; echo "alert($ok)";//实验代码 if($ok=='ok'){ //退出session session_unset(); session_destroy();document.write(skp) } ?> } </script>
<a href="<?php echo $man_url; ?>/home/admin/?mod=viewlogin&id=4352" target="_top" onclick="tuichu('ok')");">退出</a>