CSS SOLVED PR
CSS SOLVED PR
In this
example, numbers are displayed in a textarea after a 1 second
<html>
<body>
<script>
var interval;
var i=0;
function start_count()
interval=setInterval("show()",1000);
function show()
document.getElementById("txt").value+=i+ "\n";
i++;
</script>
</body>
</html>
<html>
<body>
<script>
function create(firstname,lastname,domain="example.com")
firstname=firstname.trim().toLowerCase().replace(/\s+/g,".");
lastname=lastname.trim().toLowerCase().replace(/\s+/g,".");
return `${firstname}.${lastname}@${domain}`;
var email=create(firstname,lastname);
</script>
</body>
</html>
<html>
<body>
<script>
function setCookie()
alert("Cookie set");
function getCookie()
var x=document.cookie;
document.write(x);
</script>
</body>
</html>
<html>
<body>
<button onclick="validate()">Validate</button>
<div id="status">
</div>
<script>
function validate()
var elements=document.getElementsByName("program");
for(var i=0;i<elements.length;i++)
document.getElementById("status").innerHTML=statusText;
</script>
</body>
</html>
Write a program to create the registration form for creating gmail
account.
<html>
<body>
<form>
<h2>
</h2>
<br>
<br>
<br>
<select id="gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
<br>
<br>
<br>
<br>
</form>
</body>
</html>
<html>
<script>
function highlight_this(x)
x.style.backgroundColor="pink";
x.style.color="red";
</script>
<body>
Your Name:
<br>
<br>
</body>
</html>
<html>
<body>
<br>
<br>
<button onclick="myFunction()">
Click here
</button>
<script>
function myFunction()
{
document.getElementById("txt").readOnly=true;
</script>
</body>
</html>
<html>
<body>
<script>
document.getElementById("tx").addEventListener("keypress",myFunction);
function myFunction()
document.getElementById("tx").style.backgroundColor="red";
</script>
</body>
</html>