-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathreference.html
38 lines (37 loc) · 1.15 KB
/
reference.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
<!DOCTYPE html>
<html>
<head>
<style>
.effects {
background-color: yellow;
}
</style>
<script>
function bodyload(){
document.getElementById("pic").src="../Images/tv.jpg";
document.getElementById("btnSubmit").value="Submit";
var x = document.getElementsByName("pay");
alert("Payment Modes =" + x.length);
}
</script>
</head>
<body onload="bodyload()">
<fieldset>
<legend>Payments</legend>
<input type="radio" name="pay">Credit Card
<input type="radio" name="pay">UPI Payment
</fieldset>
<br>
<div class="effects">
<img id="pic" name="pic" width="100" height="100" border="1">
</div>
<div></div>
<div>
<form name="frmHome">
User Name:
<input id="txtName" name="txtName" type="text">
<input class="effects" id="btnSubmit" name="btnSubmit" type="button">
</form>
</div>
</body>
</html>