-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
81 lines (73 loc) · 2.59 KB
/
Copy pathindex.html
File metadata and controls
81 lines (73 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Testing Website</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
a {
display: block;
margin: 10px 0;
text-decoration: none;
color: blue;
}
button {
padding: 8px 16px;
cursor: pointer;
border: 1px solid #ccc;
border-radius: 4px;
background: #fff;
margin-top: 10px;
}
button:hover {
background-color: lightgray;
}
</style>
<link rel="prefetch" href="instant_page.html" as="document">
</head>
<body>
<h1>Welcome to the Testing Website</h1>
<p>Select a page to explore:</p>
<a href="shadow_dom_test.html">Shadow DOM Testing Playground</a>
<a href="iframe_page.html">Nested Iframes Page</a>
<a href="simple_page.html">Simple Iframes Page</a>
<button onclick="openNewTab()">Open New Page in Tab</button>
<button onclick="window.location.href='instant_page.html'">Navigate Instantly</button>
<!-- ✅ New Button for Slow Test Page -->
<button onclick="window.location.href='slow_test_page.html'">
Open Slow Loading Test Page
</button>
<h2>Interactive Elements</h2>
<label for="selectBox">Choose an option:</label>
<select id="selectBox" onchange="displaySelection()">
<option value="">--Select an option--</option>
<option value="Option 1">Option 1</option>
<option value="Option 2">Option 2</option>
<option value="Option 3">Option 3</option>
</select>
<p id="selectionText"></p>
<label for="inputField">Enter some text:</label>
<input type="text" id="inputField" oninput="displayInput()" />
<p id="inputText"></p>
<script>
function displaySelection() {
const selectBox = document.getElementById('selectBox');
const selectionText = document.getElementById('selectionText');
selectionText.textContent = 'You selected: ' + selectBox.value;
}
function displayInput() {
const inputField = document.getElementById('inputField');
const inputText = document.getElementById('inputText');
inputText.textContent = 'You entered: ' + inputField.value;
}
// Function to open a new page in a new tab
function openNewTab() {
window.open("new_page.html", "_blank");
}
</script>
</body>
</html>