-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.html
44 lines (33 loc) · 907 Bytes
/
test.html
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
<head>
<title>1902 TESTING PAGE</title>
<style>
#iframe_elememt {
width: 90%;
height: 500px;
margin-top: 20px;
display: block;
}
#iframe_url {
height: 44px;
width: 20%;
}
#button {
height: 44px;
width: 200px;
}
</style>
</head>
<body>
<p>Set iframe url here:</p>
<input type="text" id="iframe_url">
<button type="button" id="button" onclick="loadIframe()">Load Iframe</button>
<p>Iframe:</p>
<iframe id="iframe_elememt"></iframe>
<script type="text/javascript">
function loadIframe()
{
var src = document.getElementById('iframe_url').value;
document.getElementById('iframe_elememt').src = src;
}
</script>
</body>