gecko-dev/dom/tests/browser/focus_after_prompt.html
Jessica Jong ed17f6c827 Bug 1316330 - Cancel delayed keypress events if last keydown was canceled. r=smaug
--HG--
extra : histedit_source : 7d2215d9c049b01b883e194e0efd0e61845223a3%2C135d6e6cef429efc19bba2c03a0f73fc6441d3a1
2017-02-03 05:16:00 -05:00

19 lines
479 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Cursor should not be lost after prompt</title>
<script type="application/javascript">
function init() {
document.getElementById("edit").contentWindow.document.designMode = "on";
}
</script>
</head>
<body onload="init()">
<div id="clickMeDiv" onclick="prompt('This is a dummy prompt!');"
onmousedown="return false;">Click me!</div>
<iframe id="edit"></iframe>
</body>
</html>