qutebrowser/tests/end2end/data/prompt/jsprompt.html

17 lines
544 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
2016-01-14 07:01:58 +01:00
<script type="text/javascript">
2016-10-27 09:16:19 +02:00
function prompter(defaultval) {
var reply = prompt("js prompt", defaultval);
console.log("Prompt reply: " + reply);
2016-01-14 07:01:58 +01:00
}
</script>
</head>
<body>
2016-10-27 09:16:19 +02:00
<input type="button" onclick="prompter('')" value="Show prompt" id="button">
<input type="button" onclick="prompter('default')" value="Show prompt with default value" id="button-default">
</body>
</html>