Skip to content

Instantly share code, notes, and snippets.

@elektronaut
Created June 27, 2015 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elektronaut/065c9f6afcaa68e4b1cd to your computer and use it in GitHub Desktop.
Save elektronaut/065c9f6afcaa68e4b1cd to your computer and use it in GitHub Desktop.
Mobile Safari crash
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script>
$(function () {
$(".crash-button").on("click", function () {
prompt("This is a prompt");
});
});
</script>
<style>
.crash-button {
color: blue;
text-decoration: underline;
}
</style>
</head>
<body>
<p>
Step 1:
Focus the textarea
</p>
<p>
Step 2:
<a class="crash-button">Click me</a>
</p>
<textarea></textarea>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment