a. Design a HTML page as below
b. You can take any sentence like the above diagram. Take only character from the user and remove the character from the given sentence and after clicking on “Click” button, display the sentence again after removing the character as below.
c. Validate for only characters.
d. Design a good looking HTML page.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<script>
function clickCha(){
var inn=document.getElementById('1').innerHTML;
while(inn.search(document.getElementById('cha').value)!=-1){
inn=inn.replace(document.getElementById('cha').value,"");
}
var content=document.getElementById('tab').innerHTML;
content=content+inn;
document.getElementById('tab').innerHTML=content;
return true;
}
</script>
<body><center>
<form><fieldset style='border:solid;' id='tab'>
<p id='1'>We at Nacre have created an idea work environment wherenin every Nacrean adheres to set of rules and regulations practiced in the corporate world.This exposes team to corporate culture,leading to inculcation of professionalisam,integrity,time manangement,efficient delegation of work and optimal working strategies both individually and within teams.Nacreans adhere to the following rules and regulations.</p>
Enter a Character:
<input type='text' name='tex' id='cha' value=''>
<input type='button' id='cli' value='click'
onclick='return clickCha()'><br>
</fieldset>
</form></center>
</body>
</html>
b. You can take any sentence like the above diagram. Take only character from the user and remove the character from the given sentence and after clicking on “Click” button, display the sentence again after removing the character as below.
c. Validate for only characters.
d. Design a good looking HTML page.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<script>
function clickCha(){
var inn=document.getElementById('1').innerHTML;
while(inn.search(document.getElementById('cha').value)!=-1){
inn=inn.replace(document.getElementById('cha').value,"");
}
var content=document.getElementById('tab').innerHTML;
content=content+inn;
document.getElementById('tab').innerHTML=content;
return true;
}
</script>
<body><center>
<form><fieldset style='border:solid;' id='tab'>
<p id='1'>We at Nacre have created an idea work environment wherenin every Nacrean adheres to set of rules and regulations practiced in the corporate world.This exposes team to corporate culture,leading to inculcation of professionalisam,integrity,time manangement,efficient delegation of work and optimal working strategies both individually and within teams.Nacreans adhere to the following rules and regulations.</p>
Enter a Character:
<input type='text' name='tex' id='cha' value=''>
<input type='button' id='cli' value='click'
onclick='return clickCha()'><br>
</fieldset>
</form></center>
</body>
</html>
No comments:
Post a Comment