-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_4.html
71 lines (64 loc) · 1.28 KB
/
index_4.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
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
<!DOCTYPE html>
<html>
<head>
<title>index_4</title>
<script type="text/javascript">
function gotoURL(){
var data = document.getElementById('txt1').value;
document.getElementById('if1').src = data;
}
</script>
<style>
<style>
#root {
width: 100vw;
height: 100vh;
padding-left: 25vw;
padding-right: 25vw;
}
#root1 {
width: 50vw;
height: 50vh;
margin-bottom: 2vh;
margin-left: 25vw;
}
#root2 {
width: 50vw;
margin-bottom: 3vh;
margin-left: 25vw;
}
/* iframe itself */
#if1 {
width: 50vw;
height: 50vh;
border: groove;
}
input{
padding-right: 2vw;
padding-left: 2vw;
padding-top: 2vh;
padding-bottom: 2vh;
margin-left: 2vw;
margin-right: 1vw;
}
#txt1{
width: 30vw;
}
#b1{
width: 8vw;
}
</style>
</head>
<body>
<h1 align="center">My mini-browser</h1>
<div id="root">
<div id = 'root1'>
<iframe id = "if1" src="https://www.google.com/webhp?igu=1" class="frame-area"></iframe>
</div>
<div id="root2">
<input type="text" id="txt1" value="https://">
<input type="button" id = 'b1' value="GO" onclick="gotoURL()">
</div>
</div>
</body>
</html>