-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-website.html
More file actions
27 lines (27 loc) · 949 Bytes
/
test-website.html
File metadata and controls
27 lines (27 loc) · 949 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Website Test</title>
</head>
<body>
<h1>Testing Personal Website</h1>
<iframe src="http://localhost:3000/Personal_Web" width="100%" height="600px"></iframe>
<script>
// Test if the iframe loads successfully
const iframe = document.querySelector('iframe');
iframe.onload = function() {
console.log('Website loaded successfully!');
// Try to access the iframe content to check for errors
try {
const iframeDoc = iframe.contentDocument || iframe.contentWindow.document;
console.log('Iframe document accessible:', !!iframeDoc);
} catch (e) {
console.log('Cross-origin restrictions prevent direct access (this is normal)');
}
};
iframe.onerror = function() {
console.error('Failed to load website');
};
</script>
</body>
</html>