I have two pages(index.html and main.html). this is index.html body tags:
<a href="main.html">main page</a>
and in main page I have a button that when click on that button I want close this window but this function not work! How I can do this? and in console give this warning:
Scripts may close only the windows that were opened by it.