summaryrefslogtreecommitdiffstats
path: root/mobile/android/geckoview/src/androidTest/assets/www/beforeunload.html
blob: d521afe5322d396e8bc0f06468d86988152bd32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
  </head>
  <body onbeforeunload="return beforeUnload()">
    <a id="navigateAway" href="./hello.html">Click Me</a>
    <a id="navigateAway2" href="./hello2.html">Click Me</a>
    <script>
      function beforeUnload() {
        return "Please don't leave.";
      }
    </script>
  </body>
</html>