Hi there mikehesson.
the site to which you linked has this statement...
"A current tab or window can only be closed if it was created by that script.
That means the window.close() function is only allowed for the window or
tab that has been created and opened using the window.open() method."
This is exactly what I pointed out to you in my post five days ago. 🙂