Use pagehide event instead of beforeunload, seems to be more reliable Add a timeout and info message when opening the window fails
19 lines
334 B
HTML
19 lines
334 B
HTML
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
}
|
|
.map {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="map" class="map" tabindex="0"></div>
|
|
</body>
|
|
</html>
|