how to close a window with a button in HTLM code example
Example: html close window button
<button type="button" onclick="javascript:window.close()"> Name </button>
<button type="button" onclick="javascript:window.close()"> Name </button>