i develop on my local desktop machine with brackets. I currently try something with browser notifications. The strange thing is, that this code:
<!doctype html>
<html>
<head>
    <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
</head>
<body>
    <button id="btn_not">Click me to get notified</button>
    <script type="text/javascript">
        $(document).ready(function () {
            if (Notification.permission !== "granted") {
                Notification.requestPermission();
            }
            $("#btn_not").click(function () {
                createNotification();
            })
        })
        function createNotification() {
            var notification = new Notification("Hi there!");
        }
    </script>
</body>
</html>
doesn't work on my local machine but it does work perfectly if I upload it to my webserver, but I don't understand why?
