qutebrowser/tests/end2end/data/javascript/window_open.html

23 lines
449 B
HTML
Raw Normal View History

2016-09-02 07:41:48 +02:00
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function open_modal() {
if (window.showModalDialog) {
window.showModalDialog();
} else {
2016-09-02 16:28:15 +02:00
window.open('hello.txt', 'window', 'modal');
2016-09-02 07:41:48 +02:00
}
}
</script>
</head>
<body>
2016-09-02 16:28:15 +02:00
<button onclick="window.open('hello.txt', 'window')" id="open-normal">normal</button>
2016-09-02 07:41:48 +02:00
<button onclick="open_modal()" id="open-modal">modal</button>
</body>
</html>