View difference between Paste ID: da4EMTLQ and hXPpVYgu
SHOW: | | - or go back to the newest paste.
1
<!doctype html>
2
<html>
3
<head>
4
    <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
5
</head>
6
<body>
7
    <input type="date" value="2014-05-22" />
8
9
    <button id="js-btn-test" type="button">
10
        An amazing button
11
    </button>
12
13
    <div id="js-test-output">
14
        Test output:
15
    </div>
16
17
    <script type="text/javascript">
18
        var btn = document.getElementById("js-btn-test");
19
        var output = document.getElementById("js-test-output");
20
21
        btn.addEventListener("click", function () {
22
         output.innerHTML += "<p>Clicked</p>";
23
        });
24
        
25-
        document.addEventListener("mouseup", function () {
25+
26
            return false;
27
        });
28
    </script>
29
</body>
30-
            evt.preventDefault();
30+