I have an Entity Framework app that is working fine in IE, Edge, Chrome, Opera, and Firefox.
But this particular part is NOT working in Safari on a Mac Mini, Macbook, or iPad.
I have a web page to display my player statistics and I open it like this with the press of a button:
function ShowPlayerStats(playerId) {
window.open("xServer/game/playerView.html?playerID=" + playerId, "Your Player Stats", "width=400,height=900");
}
That little window that pops up, playerView.html has a button called Close. It is supposed to close the Window when the player is done looking.
It looks like this:
function closeStats() {
console.log('closing stats window');
self.close();
}
And is fired with this button:
<input type="button" id="statsClose" value="CLOSE" onclick="closeStats()" />
Now it works in all browsers except Safari for some reason.
In the Safari developer console, I do see thie message: "closing stats window" but the window is never closed.
How can I get this to work in Safari too?
Thanks!