1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/spec/views/with_unload_alert.erb

15 lines
220 B
Text
Raw Normal View History

<html>
<head>
<script>
window.onbeforeunload = function(e) {
return 'Unload?';
};
</script>
</head>
<body>
<div>This triggers an alert on unload</div>
<a href="/">Go away</a>
</body>
</html>