VBScript Class - 4 by S P SHARMA CLASSES (7048972696)
<html>
<body>
<script type="text/VBScript">
a=inputBox("Enter a number")
if a mod 2=0 then
document.write("Even Number "& "<br/>")
else
document.write("Odd Number "& "<br/>")
end if
dim color
color=inputbox("Enter the color code")
select case color
case "r"
document.write("This is a red color")
case "g"
document.write("This is a green color")
case "b"
document.write("This is a blue color")
case else
document.write("This is an invalid color")
end select
</script>
</body>
</html>
No comments:
Post a Comment