Professional Documents
Culture Documents
Program: Computer Engineering (NBA Accredited) : Practical Exam Winter-2021 Answer Sheet
Program: Computer Engineering (NBA Accredited) : Practical Exam Winter-2021 Answer Sheet
Experiment Title:
Wrire a program to demonstrate the use of onchange event.
Program Code:
<html>
<head>
<script type="text/javascript">
function highlight(x)
{
x.style.color="blue";
x.style.backgroundColor="pink";
}
</script>
</head>
<body>
<form name="myform" action=" " method="post">
Institute Name:
<input type="text" name="iname" onchange="highlight(this)"/>
<BR>
Program:
<input type="text" name="infotech" onchange="highlight(this)"/>
<br>
<input type="submit" value="submit" name="submit">
</form>
</body>
</html>
1
Program: Computer Engineering (NBA Accredited)
Practical Exam Winter-2021 Answer Sheet
Output:
Paste the screen shot of output here.