Symptom
django xadmin the logout page in the browser chrome Click Close invalid page, the corresponding page can not be closed
problem causes
High version chrome and other browsers do not support window.colse () wording
Source problem
Locate the following source code logged_out.html xadmin of xadmin the views of the templates
<a href="#" onclick="javascript:window.opener=null;window.open('','_self');window.close();" class="btn btn-primary">{% trans 'Close Window' %}</a>
Solution
The source code into the following issues
<a href="javascript:void(0);" onclick="javascript:window.opener=null;window.open('about:blank','_self').close();" class="btn btn-primary">{% trans 'Close Window' %}</a>