<!DOCTYPE html> | |
<html> | |
<script> | |
function requestGeolocation() { | |
navigator.geolocation.getCurrentPosition(function(){}); | |
} | |
requestGeolocation(); | |
document.onload = function() { | |
setTimeout(Notification.requestPermission, 0); | |
}; | |
</script> | |
<body> | |
</body> | |
</html> | |