summaryrefslogtreecommitdiffstats
path: root/third_party/webdriver/test_data/alerts.html
blob: 1ecb6e4cf99cf8f12d29fc5872fd1104fbf2015b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<html>
<head>
    <title>Testing Alerts</title>

    <script type="text/javascript">
        function displayPrompt() {
          var res = prompt("Enter something");
          document.getElementById('text').innerHTML = "<p>" + res + "</p>";
        }
    </script>
</head>
<body>

<h1>Testing Alerts and Stuff</h1>

<div id="text"></div>

<p>This tests alerts: <a href="#" id="alert" onclick="alert('cheese');">click me</a></p>

<p>Let's make the <a href="#" id="prompt" onclick="displayPrompt();">prompt happen</a></p>

<p>This is a test of a confirm:
    <a href="simpleTest.html" id="confirm" onclick="return confirm('Are you sure?');">test confirm</a></p>

</body>
</html>